From 596379e26045e7ff250d18c03ea564b6c94ab007 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 19 Jan 2022 18:09:52 +0530 Subject: [PATCH] [youtube] Make invalid storyboard URL non-fatal Closes #2382 --- yt_dlp/extractor/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 451771d6b4..fd0ede189e 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3058,9 +3058,9 @@ def process_manifest_format(f, proto, itag): def _extract_storyboard(self, player_responses, duration): spec = get_first( player_responses, ('storyboards', 'playerStoryboardSpecRenderer', 'spec'), default='').split('|')[::-1] - if not spec: + base_url = url_or_none(urljoin('https://i.ytimg.com/', spec.pop() or None)) + if not base_url: return - base_url = spec.pop() L = len(spec) - 1 for i, args in enumerate(spec): args = args.split('#')