mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-06-23 11:56:20 +00:00
Merge 112e8e497068205af8fbc1698f61bc3b9dc52e96 into 3eb8d22ddb8982ca4fb56bb7a8d6517538bf14c6
This commit is contained in:
commit
c6d1fac82d
@ -440,8 +440,12 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
|
||||
description = try_get(
|
||||
renderer, lambda x: x['descriptionSnippet']['runs'][0]['text'],
|
||||
compat_str)
|
||||
duration = parse_duration(try_get(
|
||||
renderer, lambda x: x['lengthText']['simpleText'], compat_str))
|
||||
duration_text = try_get(
|
||||
renderer,
|
||||
(lambda x: x['lengthText']['simpleText'],
|
||||
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 ''
|
||||
view_count = str_to_int(self._search_regex(
|
||||
|
Loading…
x
Reference in New Issue
Block a user