aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2025-08-21 09:37:13 +0300
committerA Farzat <a@farzat.xyz>2025-08-21 09:37:13 +0300
commitb141aa29f28c4e4281415b97dac8fe548b128f9b (patch)
treed0519e908893f41897204045b5aee69370cf2889
parent543810b5b5ac5d8e5174a48e8345ab9c92907677 (diff)
downloadcsca5028-b141aa29f28c4e4281415b97dac8fe548b128f9b.tar.gz
csca5028-b141aa29f28c4e4281415b97dac8fe548b128f9b.zip
Add channel information to VideoTuple
-rw-r--r--data-collection/components/videos.py4
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"],