From 6c43aeea5c6a77c8a1fbf3f59a87cfc2a4664206 Mon Sep 17 00:00:00 2001 From: Glenn Slayden <5589855+glenn-slayden@users.noreply.github.com> Date: Tue, 6 Jul 2021 14:19:52 -0700 Subject: [PATCH] ...or is this what the linter wants? --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 9db32c639..2112df856 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -318,7 +318,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor): compat_str) duration_text = try_get( renderer, - (lambda x: x['lengthText']['simpleText'], + (lambda x: x['lengthText']['simpleText'], lambda x: x['thumbnailOverlays'][0]['thumbnailOverlayTimeStatusRenderer']['text']['simpleText']), compat_str) duration = parse_duration(duration_text)