1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-14 04:05:16 +00:00

[ie/youtube] Adjust view count handling for shorts

This commit is contained in:
Rico van Zelst
2025-05-07 13:07:00 +02:00
parent b26bc32579
commit 604c9ea983

View File

@@ -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: