[ie/youtube] Adjust view count handling for shorts

pull/13123/head
Rico van Zelst 3 months ago
parent b26bc32579
commit 604c9ea983

@ -4007,6 +4007,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
info['concurrent_view_count'] = vc info['concurrent_view_count'] = vc
elif info.get('view_count') is None: elif info.get('view_count') is None:
info['view_count'] = vc info['view_count'] = vc
elif get_first(microformats, 'isShortsEligible'):
info['engaged_view_count'] = info['view_count']
info['view_count'] = vc
vsir = get_first(contents, 'videoSecondaryInfoRenderer') vsir = get_first(contents, 'videoSecondaryInfoRenderer')
if vsir: if vsir:

Loading…
Cancel
Save