diff options
| author | A Farzat <a@farzat.xyz> | 2025-08-21 09:37:13 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-08-21 09:37:13 +0300 |
| commit | b141aa29f28c4e4281415b97dac8fe548b128f9b (patch) | |
| tree | d0519e908893f41897204045b5aee69370cf2889 /data-collection/components | |
| parent | 543810b5b5ac5d8e5174a48e8345ab9c92907677 (diff) | |
| download | csca5028-b141aa29f28c4e4281415b97dac8fe548b128f9b.tar.gz csca5028-b141aa29f28c4e4281415b97dac8fe548b128f9b.zip | |
Add channel information to VideoTuple
Diffstat (limited to 'data-collection/components')
| -rw-r--r-- | data-collection/components/videos.py | 4 |
1 files changed, 4 insertions, 0 deletions
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"], |
