mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[cleanup] Move embed tests to dedicated extractors (#13782)
Authored by: doe1080
This commit is contained in:
		| @@ -19,6 +19,7 @@ class PlaywireIE(InfoExtractor): | ||||
|             'thumbnail': r're:^https?://.*\.png$', | ||||
|             'duration': 145.94, | ||||
|         }, | ||||
|         'skip': 'Invalid URL', | ||||
|     }, { | ||||
|         # m3u8 in f4m | ||||
|         'url': 'http://config.playwire.com/21772/videos/v2/4840492/zeus.json', | ||||
| @@ -27,10 +28,7 @@ class PlaywireIE(InfoExtractor): | ||||
|             'ext': 'mp4', | ||||
|             'title': 'ITV EL SHOW FULL', | ||||
|         }, | ||||
|         'params': { | ||||
|             # m3u8 download | ||||
|             'skip_download': True, | ||||
|         }, | ||||
|         'skip': 'Invalid URL', | ||||
|     }, { | ||||
|         # Multiple resolutions while bitrates missing | ||||
|         'url': 'http://cdn.playwire.com/11625/embed/85228.html', | ||||
| @@ -42,6 +40,15 @@ class PlaywireIE(InfoExtractor): | ||||
|         'url': 'http://cdn.playwire.com/v2/12342/config/1532636.json', | ||||
|         'only_matching': True, | ||||
|     }] | ||||
|     _WEBPAGE_TESTS = [{ | ||||
|         'url': 'https://www.cinemablend.com/new/First-Joe-Dirt-2-Trailer-Teaser-Stupid-Greatness-70874.html', | ||||
|         'info_dict': { | ||||
|             'id': '3519514', | ||||
|             'ext': 'mp4', | ||||
|             'title': 'Joe Dirt 2 Beautiful Loser Teaser Trailer', | ||||
|         }, | ||||
|         'skip': 'Site no longer embeds Playwire', | ||||
|     }] | ||||
| 
 | ||||
|     def _real_extract(self, url): | ||||
|         mobj = self._match_valid_url(url) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 doe1080
					doe1080