diff --git a/youtube_dl/extractor/xvideos.py b/youtube_dl/extractor/xvideos.py index bdd799619..f7820e196 100644 --- a/youtube_dl/extractor/xvideos.py +++ b/youtube_dl/extractor/xvideos.py @@ -146,7 +146,7 @@ class XVideosIE(InfoExtractor): self._sort_formats(formats) - tags = self._search_regex(r'(?P.+?)<', webpage) creator = creator_data[0][1] @@ -160,7 +160,7 @@ class XVideosIE(InfoExtractor): 'url': urljoin(url, actor_tuple[0]), }) - views = self._search_regex(r'(?P.+?)<', webpage, 'views', group='views') + views = self._search_regex(r'(?P.+?)<', webpage, 'views', group='views', default=0) return { 'id': video_id,