mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-14 12:15:23 +00:00
[ie/youtube] Adjust view count handling for shorts
This commit is contained in:
@@ -4007,6 +4007,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
info['concurrent_view_count'] = vc
|
||||
elif info.get('view_count') is None:
|
||||
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')
|
||||
if vsir:
|
||||
|
||||
Reference in New Issue
Block a user