From f53dd28ada0d3ad702e135eec6107d8447f88a3f Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Mon, 27 Mar 2023 21:17:27 +1300 Subject: [PATCH] /channels/latest: author ID fallback in video entry --- extractors/channel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/extractors/channel.py b/extractors/channel.py index adbec00..519e3ee 100644 --- a/extractors/channel.py +++ b/extractors/channel.py @@ -189,6 +189,7 @@ def extract_channel_latest(ucid): missing_published = False for entry in feed.findall("{http://www.w3.org/2005/Atom}entry"): id = entry.find("{http://www.youtube.com/xml/schemas/2015}videoId").text + channel_id = channel_id or entry.find("{http://www.youtube.com/xml/schemas/2015}channelId").text media_group = entry.find("{http://search.yahoo.com/mrss/}group") description = media_group.find("{http://search.yahoo.com/mrss/}description").text or "" media_community = media_group.find("{http://search.yahoo.com/mrss/}community")