1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-09 06:48:30 +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 @@ def process_language(container, base_url, lang_code, sub_name, query):
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: