~cadence/tube-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH Second] Fix broken channel videos extraction failing with KeyError: 'gridVideoRenderer'

~lomanic
Details
Message ID
<161317624895.4858.13360699289275846889-0@git.sr.ht>
DKIM signature
missing
Download raw message
Patch: +1 -1
From: Lomanic <lomanic@hotmail.fr>

---
 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
-- 
2.30.0
Details
Message ID
<20210219010040.80ad2171e9a83446ca9dd485@disroot.org>
In-Reply-To
<161317624895.4858.13360699289275846889-0@git.sr.ht> (view parent)
DKIM signature
pass
Download raw message
Tested, works, and good solution. Patch applied, thank you!
Reply to thread Export thread (mbox)