diff --git a/youtube_dl/extractor/Sonuma.py b/youtube_dl/extractor/Sonuma.py deleted file mode 100644 index 1b1f64a4c..000000000 --- a/youtube_dl/extractor/Sonuma.py +++ /dev/null @@ -1,51 +0,0 @@ -from __future__ import unicode_literals - -import re - - - - - -from .common import InfoExtractor - - - -class SonumaIE(InfoExtractor): - - _VALID_URL = r'(?:https?://)?(?:www\.)?sonuma\.be/archive/(?P\w+[-0-9])*)' - - - - def _real_extract(self, url): - - mobj=re.match(self._VALID_URL,url) - - - - video_id = mobj.group('id') - - webpage_url='https://sonuma.be/archive'+video_id - - webpage=self._download_webpage(webpage_url,video_id) - - - - self.report_extraction(video_id) - - - - video_url = self._html_search_regex('https://vod.infomaniak.com/redirect/sonumasa_2_vod/web2-39166/copy-32/cb88bd20-b57b-b756-e040-010a076419f5.mp4?sKey=1bc95ea22b94002d7a208593b7620d9f') - - - - return [{ - - 'id': video_id, - - 'url': video_url, - - 'ext': 'mp4', - - 'title': self._og_search_title(webpage), - - }] \ No newline at end of file diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index d0e9a858f..e311eec08 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -489,6 +489,8 @@ from .ivi import ( ) from .ivideon import IvideonIE from .iwara import IwaraIE + +from .ixigua import IxiguaIE from .izlesene import IzleseneIE from .jamendo import ( JamendoIE, diff --git a/youtube_dl/extractor/ixigua.py b/youtube_dl/extractor/ixigua.py index ec8fec847..311448bc9 100644 --- a/youtube_dl/extractor/ixigua.py +++ b/youtube_dl/extractor/ixigua.py @@ -5,9 +5,9 @@ from .common import InfoExtractor -class SonumaIE(InfoExtractor): +class IxiguaIE(InfoExtractor): - _VALID_URL = r'https://www\.sonuma\.be/archive/\S+' + _VALID_URL = r'https://www.ixigua.com/(?P\d+)/' def _real_extract(self, url): video_id = self._match_id(url)