mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-19 21:04:01 -07:00
Merge 112e8e4970
into c052a16f72
This commit is contained in:
commit
c2fccde087
1 changed files with 6 additions and 2 deletions
|
@ -433,8 +433,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…
Add table
Add a link
Reference in a new issue