From f9eef66c324885e104ce93841eac0deafda33089 Mon Sep 17 00:00:00 2001 From: Paper <37962225+mrpapersonic@users.noreply.github.com> Date: Fri, 20 May 2022 04:27:57 -0400 Subject: [PATCH] Add periods to accepted view count, get str_to_int to handle them for us --- youtube_dl/extractor/vidlii.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/vidlii.py b/youtube_dl/extractor/vidlii.py index ce35be62d..a4a523698 100644 --- a/youtube_dl/extractor/vidlii.py +++ b/youtube_dl/extractor/vidlii.py @@ -126,10 +126,10 @@ class VidLiiIE(InfoExtractor): default=None) or self._search_regex( r'duration\s*:\s*(\d+)', webpage, 'duration', fatal=False)) - view_count = int_or_none(self._search_regex( - (r'([\d,]+) views', - r'Views\s*:\s*([\d,]+)'), - webpage, 'view count', fatal=False).replace(",", "")) + view_count = str_to_int(self._html_search_regex( + (r'([\d,.]+) views', + r'Views\s*:\s*([\d,.]+)'), + webpage, 'view count', fatal=False)) comment_count = int_or_none(self._search_regex( (r']+id=["\']cmt_num[^>]+>(\d+)',