1
0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2024-12-22 13:06:59 +00:00

Fix channels having videos

This commit is contained in:
Cadence Ember 2020-10-04 18:38:41 +13:00
parent e1bcc306b3
commit 0b9874a4f4
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -47,7 +47,7 @@ def extract_channel(ucid):
# check that the channel actually has videos - this may be replaced
# with messageRenderer.text.simpleText == "This channel has no videos."
if "gridVideoRenderer" in tab_parts:
if "gridRenderer" in tab_parts:
videos = (
v["gridVideoRenderer"] for v in tab_parts["gridRenderer"]["items"]
)