Adjust hanging alignment, if you prefer?

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

View File

@ -319,8 +319,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
duration_text = try_get(
renderer,
(lambda x: x['lengthText']['simpleText'],
lambda x: x['thumbnailOverlays'][0]['thumbnailOverlayTimeStatusRenderer']['text']['simpleText']),
compat_str)
lambda x: x['thumbnailOverlays'][0]['thumbnailOverlayTimeStatusRenderer']['text']['simpleText']),
compat_str)
duration = parse_duration(duration_text)
view_count_text = try_get(
renderer, lambda x: x['viewCountText']['simpleText'], compat_str) or ''