mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2024-11-21 15:17:29 +00:00
/channels/latest: author ID fallback in video entry
This commit is contained in:
parent
82f28cb99d
commit
f53dd28ada
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user