mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-17 18:58:35 +00:00
Merge c26324d9b6
into c1ac543c81
This commit is contained in:
commit
909a36eb7b
@ -4288,6 +4288,8 @@ def process_language(container, base_url, lang_code, sub_name, client_name, quer
|
||||
'toggleButtonViewModel', 'toggleButtonViewModel', 'defaultButtonViewModel',
|
||||
'buttonViewModel', 'accessibilityText', {parse_count}), get_all=False)
|
||||
|
||||
short_views_type = self._configuration_arg('short_views_type', ['engaged'])[0].lower()
|
||||
|
||||
vcr = traverse_obj(vpir, ('viewCount', 'videoViewCountRenderer'))
|
||||
if vcr:
|
||||
vc = self._get_count(vcr, 'viewCount')
|
||||
@ -4296,6 +4298,8 @@ def process_language(container, base_url, lang_code, sub_name, client_name, quer
|
||||
info['concurrent_view_count'] = vc
|
||||
elif info.get('view_count') is None:
|
||||
info['view_count'] = vc
|
||||
elif get_first(microformats, 'isShortsEligible') and short_views_type == 'seen':
|
||||
info['view_count'] = vc
|
||||
|
||||
vsir = get_first(contents, 'videoSecondaryInfoRenderer')
|
||||
if vsir:
|
||||
|
Loading…
Reference in New Issue
Block a user