From 5896b2afb0b06d69fa355986b566ad95f218b7e5 Mon Sep 17 00:00:00 2001 From: Dante Date: Sun, 5 Apr 2020 21:23:23 -0700 Subject: [PATCH] Fixing Title Regex --- youtube_dl/extractor/ixigua.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/ixigua.py b/youtube_dl/extractor/ixigua.py index 311448bc9..c2c34c59a 100644 --- a/youtube_dl/extractor/ixigua.py +++ b/youtube_dl/extractor/ixigua.py @@ -7,7 +7,7 @@ from .common import InfoExtractor class IxiguaIE(InfoExtractor): - _VALID_URL = r'https://www.ixigua.com/(?P\d+)/' + _VALID_URL = r'https://www.ixigua.com/i(?P\d+)/' def _real_extract(self, url): video_id = self._match_id(url) @@ -16,7 +16,7 @@ class IxiguaIE(InfoExtractor): url, video_id ) - title = self._html_search_regex(r'(.+?)', webpage, 'title') + title = self._html_search_regex(r'(\S+) - \S+', webpage, 'title') download_url = self._html_search_regex( @@ -25,6 +25,7 @@ class IxiguaIE(InfoExtractor): webpage, "download_url" ) return { + 'id': video_id, 'url': download_url, 'title': title