diff --git a/backend/routers/videos.py b/backend/routers/videos.py index b643821..25dbe42 100644 --- a/backend/routers/videos.py +++ b/backend/routers/videos.py @@ -148,6 +148,7 @@ def home_feed( v.duration_seconds, v.published_at, v.tags, v.category, c.id AS channel_id, c.name AS channel_name, c.youtube_channel_id AS channel_youtube_id, + c.thumbnail_url AS channel_thumbnail_url, COALESCE(uv.watched, 0) AS watched, COALESCE(uv.watch_progress_seconds, 0) AS watch_progress_seconds, COALESCE(uv.downloaded, 0) AS is_downloaded, @@ -180,6 +181,7 @@ def home_feed( v.duration_seconds, v.published_at, v.tags, v.category, c.id AS channel_id, c.name AS channel_name, c.youtube_channel_id AS channel_youtube_id, + c.thumbnail_url AS channel_thumbnail_url, COALESCE(uv.watched, 0) AS watched, COALESCE(uv.watch_progress_seconds, 0) AS watch_progress_seconds, COALESCE(uv.downloaded, 0) AS is_downloaded, @@ -214,6 +216,7 @@ def home_feed( v.duration_seconds, v.published_at, v.tags, v.category, c.id AS channel_id, c.name AS channel_name, c.youtube_channel_id AS channel_youtube_id, + c.thumbnail_url AS channel_thumbnail_url, COALESCE(uv.watched, 0) AS watched, COALESCE(uv.watch_progress_seconds, 0) AS watch_progress_seconds, COALESCE(uv.downloaded, 0) AS is_downloaded, @@ -261,6 +264,7 @@ def home_feed( v.duration_seconds, v.published_at, v.tags, v.category, c.id AS channel_id, c.name AS channel_name, c.youtube_channel_id AS channel_youtube_id, + c.thumbnail_url AS channel_thumbnail_url, COALESCE(uv.watched, 0) AS watched, COALESCE(uv.watch_progress_seconds, 0) AS watch_progress_seconds, COALESCE(uv.downloaded, 0) AS is_downloaded, @@ -315,7 +319,8 @@ def home_feed( SELECT v.id, v.youtube_video_id, v.title, v.description, v.thumbnail_url, v.duration_seconds, v.published_at, v.tags, v.category, c.id AS channel_id, c.name AS channel_name, - c.youtube_channel_id AS channel_youtube_id + c.youtube_channel_id AS channel_youtube_id, + c.thumbnail_url AS channel_thumbnail_url FROM discovery_queue dq JOIN channels c ON dq.channel_id = c.id JOIN videos v ON v.channel_id = c.id