diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py index 9146d822b5..062f27b1a4 100644 --- a/yt_dlp/extractor/generic.py +++ b/yt_dlp/extractor/generic.py @@ -1750,16 +1750,6 @@ class GenericIE(InfoExtractor): 'description': 'md5:c80da9ed3d83ae6d1876c834de03e1c4', }, 'skip': 'Site Changed', - }, { - # ✅128 - # ZapiksIE - 'url': 'https://www.skipass.com/news/116090-bon-appetit-s5ep3-baqueira-mi-cor.html', - 'info_dict': { - 'id': '118046', - 'ext': 'mp4', - 'title': 'EP3S5 - Bon Appétit - Baqueira Mi Corazon !', - 'thumbnail': r're:https?://zpks\.com/.+\.jpg', - }, }, { # ✅131 # Redirect diff --git a/yt_dlp/extractor/zapiks.py b/yt_dlp/extractor/zapiks.py index 2916367c82..fcfebcdc51 100644 --- a/yt_dlp/extractor/zapiks.py +++ b/yt_dlp/extractor/zapiks.py @@ -13,35 +13,39 @@ class ZapiksIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?zapiks\.(?:fr|com)/(?:(?:[a-z]{2}/)?(?P.+?)\.html|index\.php\?.*\bmedia_id=(?P\d+))' _EMBED_REGEX = [r']+src="(?Phttps?://(?:www\.)?zapiks\.fr/index\.php\?.+?)"'] - _TESTS = [ - { - 'url': 'http://www.zapiks.fr/ep2s3-bon-appetit-eh-be-viva.html', - 'md5': 'aeb3c473b2d564b2d46d664d28d5f050', - 'info_dict': { - 'id': '80798', - 'ext': 'mp4', - 'title': 'EP2S3 - Bon Appétit - Eh bé viva les pyrénées con!', - 'description': 'md5:7054d6f6f620c6519be1fe710d4da847', - 'thumbnail': r're:^https?://.*\.jpg$', - 'duration': 528, - 'timestamp': 1359044972, - 'upload_date': '20130124', - 'view_count': int, - }, + _TESTS = [{ + 'url': 'http://www.zapiks.fr/ep2s3-bon-appetit-eh-be-viva.html', + 'md5': 'aeb3c473b2d564b2d46d664d28d5f050', + 'info_dict': { + 'id': '80798', + 'ext': 'mp4', + 'title': 'EP2S3 - Bon Appétit - Eh bé viva les pyrénées con!', + 'description': 'md5:7054d6f6f620c6519be1fe710d4da847', + 'thumbnail': r're:https?://zpks\.com/.+\.jpg', + 'duration': 528, + 'timestamp': 1359044972, + 'upload_date': '20130124', + 'view_count': int, }, - { - 'url': 'http://www.zapiks.com/ep3s5-bon-appetit-baqueira-m-1.html', - 'only_matching': True, + }, { + 'url': 'http://www.zapiks.com/ep3s5-bon-appetit-baqueira-m-1.html', + 'only_matching': True, + }, { + 'url': 'http://www.zapiks.com/nl/ep3s5-bon-appetit-baqueira-m-1.html', + 'only_matching': True, + }, { + 'url': 'http://www.zapiks.fr/index.php?action=playerIframe&media_id=118046&width=640&height=360&autoStart=false&language=fr', + 'only_matching': True, + }] + _WEBPAGE_TESTS = [{ + 'url': 'https://www.skipass.com/news/116090-bon-appetit-s5ep3-baqueira-mi-cor.html', + 'info_dict': { + 'id': '118046', + 'ext': 'mp4', + 'title': 'EP3S5 - Bon Appétit - Baqueira Mi Corazon !', + 'thumbnail': r're:https?://zpks\.com/.+\.jpg', }, - { - 'url': 'http://www.zapiks.com/nl/ep3s5-bon-appetit-baqueira-m-1.html', - 'only_matching': True, - }, - { - 'url': 'http://www.zapiks.fr/index.php?action=playerIframe&media_id=118046&width=640&height=360&autoStart=false&language=fr', - 'only_matching': True, - }, - ] + }] def _real_extract(self, url): mobj = self._match_valid_url(url)