From 737a2f6f7475532eabab1def70c629503cdcd35d Mon Sep 17 00:00:00 2001 From: girst Date: Fri, 18 Feb 2022 10:24:49 +0100 Subject: [PATCH] encard parser: videoDuration might be absent possibly removed from every VIDEO card, not investigated. --- app/common/innertube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/innertube.py b/app/common/innertube.py index 9287132..32af1fa 100644 --- a/app/common/innertube.py +++ b/app/common/innertube.py @@ -315,7 +315,7 @@ def parse_endcard(card): return {'type': ctype, 'content': { 'video_id': card['endpoint']['watchEndpoint']['videoId'], 'title': card['title']|G.text, - 'length': card['videoDuration']|G.text, # '12:21' + 'length': card|G('videoDuration')|G.text, # '12:21' 'views': toInt(card['metadata']|G.text), # XXX: no channel name }} -- 2.39.3