diff --git a/youtube_dl/extractor/pornoxo.py b/youtube_dl/extractor/pornoxo.py index 0d9656d396..202f58673a 100644 --- a/youtube_dl/extractor/pornoxo.py +++ b/youtube_dl/extractor/pornoxo.py @@ -4,10 +4,10 @@ from .common import InfoExtractor from ..utils import ( - parse_duration, str_to_int, ) + class PornoXOIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?pornoxo\.com/videos/(?P\d+)/(?P[^/]+)\.html' _TEST = { @@ -44,7 +44,7 @@ def _real_extract(self, url): r'\'image\'\s*:\s*"([^"]+)"', webpage, 'thumbnail', fatal=False) view_count = str_to_int(self._html_search_regex( - r'Views:\s*(\d+)', webpage, 'view count', fatal=False)) + r'[vV]iews:\s*([0-9,]+)', webpage, 'view count', fatal=False)) categories_str = self._html_search_regex( r'