...or is this what the linter wants?

This commit is contained in:
Glenn Slayden 2021-07-06 14:19:52 -07:00 committed by GitHub
parent a80c44ea8e
commit 6c43aeea5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)