From b141aa29f28c4e4281415b97dac8fe548b128f9b Mon Sep 17 00:00:00 2001 From: A Farzat Date: Thu, 21 Aug 2025 09:37:13 +0300 Subject: Add channel information to VideoTuple --- data-collection/components/videos.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data-collection/components/videos.py b/data-collection/components/videos.py index 32dc1da..5b2d644 100644 --- a/data-collection/components/videos.py +++ b/data-collection/components/videos.py @@ -5,6 +5,8 @@ class VideoTuple(NamedTuple): id: str link: str title: str + author: str + author_channel: str published: datetime updated: datetime thumbnail: str @@ -16,6 +18,8 @@ class VideoTuple(NamedTuple): id = entry.id, link = entry.link, title = entry.title, + author = entry.author_detail.name, + author_channel = entry.author_detail.href, published = datetime.fromisoformat(entry.published), updated = datetime.fromisoformat(entry.updated), thumbnail = entry.media_thumbnail[0]["url"], -- cgit v1.2.3-70-g09d2