From 112e8e497068205af8fbc1698f61bc3b9dc52e96 Mon Sep 17 00:00:00 2001 From: Glenn Slayden <5589855+glenn-slayden@users.noreply.github.com> Date: Tue, 6 Jul 2021 15:11:46 -0700 Subject: [PATCH] Early extraction of duration metadata via playlist thumbnail overlay Early gathering of item video durations from playlist metadata, prior to downloading individual item metadata pages, so that video duration values are (e.g.) shown in `--flat-playlist` or `--simulate`, and/or can be used as a download filtering criterion. --- 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 a9eb1e483..a485c4f80 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -315,7 +315,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor): lambda x: x['title']['simpleText']), compat_str) description = try_get( renderer, lambda x: x['descriptionSnippet']['runs'][0]['text'], - compat_str) + compat_str) duration_text = try_get( renderer, (lambda x: x['lengthText']['simpleText'],