mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 16:51:26 +01:00
Compare commits
2 Commits
7fa2226891
...
0b7a1c3b5e
Author | SHA1 | Date | |
---|---|---|---|
|
0b7a1c3b5e | ||
|
1e33f1f307 |
|
@ -4481,13 +4481,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
info[mobj.group('type') + '_count'] = str_to_int(mobj.group('count'))
|
info[mobj.group('type') + '_count'] = str_to_int(mobj.group('count'))
|
||||||
break
|
break
|
||||||
|
|
||||||
match = re.search(
|
info['like_count'] = traverse_obj(vpir, (
|
||||||
r'\b(\d+)\b',
|
'videoActions', 'menuRenderer', 'topLevelButtons', ...,
|
||||||
vpir['videoActions']['menuRenderer']['topLevelButtons'][0]
|
'segmentedLikeDislikeButtonViewModel', 'likeButtonViewModel',
|
||||||
['segmentedLikeDislikeButtonViewModel']['likeButtonViewModel']
|
'likeButtonViewModel', 'toggleButtonViewModel', 'toggleButtonViewModel',
|
||||||
['likeButtonViewModel']['toggleButtonViewModel']['toggleButtonViewModel']
|
'defaultButtonViewModel', 'buttonViewModel', 'accessibilityText', {parse_count}), get_all=False)
|
||||||
['defaultButtonViewModel']['buttonViewModel']['accessibilityText'])
|
|
||||||
info['like_count'] = str_to_int(match.group(1))
|
|
||||||
|
|
||||||
vcr = traverse_obj(vpir, ('viewCount', 'videoViewCountRenderer'))
|
vcr = traverse_obj(vpir, ('viewCount', 'videoViewCountRenderer'))
|
||||||
if vcr:
|
if vcr:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user