diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py index 4d56d46ad..4204e21fd 100644 --- a/yt_dlp/extractor/generic.py +++ b/yt_dlp/extractor/generic.py @@ -1443,17 +1443,6 @@ class GenericIE(InfoExtractor): 'timestamp': 1641772800, 'upload_date': '20220110', }, - }, { - # 🔧107 - # TwentyMinutenIE; should be supported by _VALID_URL - 'url': 'https://www.20min.ch/story/so-kommen-sie-bei-eis-und-schnee-sicher-an-557858045456', - 'info_dict': { - 'id': '523629', - 'ext': 'mp4', - 'title': 'So kommen Sie bei Eis und Schnee sicher an', - 'description': 'md5:117c212f64b25e3d95747e5276863f7d', - }, - 'skip': 'IE fix required; update _VALID_URL', }, { # ✅124 # YoutubeIE diff --git a/yt_dlp/extractor/twentymin.py b/yt_dlp/extractor/twentymin.py index a08c591d9..1be93e688 100644 --- a/yt_dlp/extractor/twentymin.py +++ b/yt_dlp/extractor/twentymin.py @@ -6,6 +6,7 @@ class TwentyMinutenIE(InfoExtractor): + _WORKING = False IE_NAME = '20min' _VALID_URL = r'''(?x) https?:// @@ -24,7 +25,7 @@ class TwentyMinutenIE(InfoExtractor): 'id': '469148', 'ext': 'mp4', 'title': '85 000 Franken für 15 perfekte Minuten', - 'thumbnail': r're:https?://.*\.jpg$', + 'thumbnail': r're:https?://.+\.jpg', }, }, { 'url': 'http://www.20min.ch/videoplayer/videoplayer.html?params=client@twentyDE|videoId@523629', @@ -33,7 +34,7 @@ class TwentyMinutenIE(InfoExtractor): 'ext': 'mp4', 'title': 'So kommen Sie bei Eis und Schnee sicher an', 'description': 'md5:117c212f64b25e3d95747e5276863f7d', - 'thumbnail': r're:https?://.*\.jpg$', + 'thumbnail': r're:https?://.+\.jpg', }, 'params': { 'skip_download': True, @@ -42,6 +43,16 @@ class TwentyMinutenIE(InfoExtractor): 'url': 'http://www.20min.ch/videotv/?cid=44&vid=468738', 'only_matching': True, }] + _WEBPAGE_TESTS = [{ + 'url': 'https://www.20min.ch/story/so-kommen-sie-bei-eis-und-schnee-sicher-an-557858045456', + 'info_dict': { + 'id': '523629', + 'ext': 'mp4', + 'title': 'So kommen Sie bei Eis und Schnee sicher an', + 'description': 'md5:117c212f64b25e3d95747e5276863f7d', + }, + 'skip': 'IE fix required; update _VALID_URL', + }] def _real_extract(self, url): video_id = self._match_id(url)