|
|
@ -4480,14 +4480,13 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|
|
|
if mobj:
|
|
|
|
if mobj:
|
|
|
|
info[mobj.group('type') + '_count'] = str_to_int(mobj.group('count'))
|
|
|
|
info[mobj.group('type') + '_count'] = str_to_int(mobj.group('count'))
|
|
|
|
break
|
|
|
|
break
|
|
|
|
sbr_tooltip = try_get(
|
|
|
|
|
|
|
|
vpir, lambda x: x['sentimentBar']['sentimentBarRenderer']['tooltip'])
|
|
|
|
info['like_count'] = traverse_obj(vpir, (
|
|
|
|
if sbr_tooltip:
|
|
|
|
'videoActions', 'menuRenderer', 'topLevelButtons', ...,
|
|
|
|
like_count, dislike_count = sbr_tooltip.split(' / ')
|
|
|
|
'segmentedLikeDislikeButtonViewModel', 'likeButtonViewModel', 'likeButtonViewModel',
|
|
|
|
info.update({
|
|
|
|
'toggleButtonViewModel', 'toggleButtonViewModel', 'defaultButtonViewModel',
|
|
|
|
'like_count': str_to_int(like_count),
|
|
|
|
'buttonViewModel', 'accessibilityText', {parse_count}), get_all=False)
|
|
|
|
'dislike_count': str_to_int(dislike_count),
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vcr = traverse_obj(vpir, ('viewCount', 'videoViewCountRenderer'))
|
|
|
|
vcr = traverse_obj(vpir, ('viewCount', 'videoViewCountRenderer'))
|
|
|
|
if vcr:
|
|
|
|
if vcr:
|
|
|
|
vc = self._get_count(vcr, 'viewCount')
|
|
|
|
vc = self._get_count(vcr, 'viewCount')
|
|
|
|