[ie/youtube:tab] Fix metadata extraction (#16976)

Authored by: bashonly
This commit is contained in:
bashonly
2026-06-21 22:49:35 +00:00
committed by GitHub
parent 98036ccd4f
commit d6c411bcd0
2 changed files with 70 additions and 60 deletions
+2
View File
@@ -1152,6 +1152,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
def _get_count(self, data, *path_list):
count_text = self._get_text(data, *path_list) or ''
if count_text.lower().startswith('no '):
return 0
count = parse_count(count_text)
if count is None:
count = str_to_int(