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:
parent
b26bc32579
commit
604c9ea983
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user