/channels/latest: author ID fallback in video entry

This commit is contained in:
Cadence Ember 2023-03-27 21:17:27 +13:00
parent 82f28cb99d
commit f53dd28ada
1 changed files with 1 additions and 0 deletions

View File

@ -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")