From 80b41c772536418c3ed04270808f1e89379ff153 Mon Sep 17 00:00:00 2001 From: Lomanic Date: Sat, 13 Feb 2021 01:26:00 +0100 Subject: [PATCH] Fix broken channel videos extraction failing with KeyError: 'gridVideoRenderer' --- extractors/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractors/channel.py b/extractors/channel.py index 787a2ec..f080597 100644 --- a/extractors/channel.py +++ b/extractors/channel.py @@ -58,7 +58,7 @@ def extract_channel(ucid): # with messageRenderer.text.simpleText == "This channel has no videos." if "gridRenderer" in tab_parts: videos = ( - v["gridVideoRenderer"] for v in tab_parts["gridRenderer"]["items"] + v["gridVideoRenderer"] for v in tab_parts["gridRenderer"]["items"] if "gridVideoRenderer" in v ) for v in videos: live = True