mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 22:55:18 +00:00 
			
		
		
		
	[cleanup] Move embed tests to dedicated extractors (#13782)
Authored by: doe1080
This commit is contained in:
		| @@ -12,13 +12,13 @@ class DBTVIE(InfoExtractor): | ||||
|             'ext': 'mp4', | ||||
|             'title': 'Skulle teste ut fornøyelsespark, men kollegaen var bare opptatt av bikinikroppen', | ||||
|             'description': 'md5:49cc8370e7d66e8a2ef15c3b4631fd3f', | ||||
|             'thumbnail': r're:https?://.*\.jpg', | ||||
|             'thumbnail': r're:https?://.+\.jpg', | ||||
|             'upload_date': '20160916', | ||||
|             'duration': 69, | ||||
|             'uploader_id': 'UCk5pvsyZJoYJBd7_oFPTlRQ', | ||||
|             'uploader': 'Dagbladet', | ||||
|         }, | ||||
|         'add_ie': ['Youtube'], | ||||
|         'skip': 'Invalid URL', | ||||
|     }, { | ||||
|         'url': 'https://www.dagbladet.no/video/embed/xlGmyIeN9Jo/?autoplay=false', | ||||
|         'only_matching': True, | ||||
| @@ -26,6 +26,20 @@ class DBTVIE(InfoExtractor): | ||||
|         'url': 'https://www.dagbladet.no/video/truer-iran-bor-passe-dere/PalfB2Cw', | ||||
|         'only_matching': True, | ||||
|     }] | ||||
|     _WEBPAGE_TESTS = [{ | ||||
|         # FIXME: Embed detection | ||||
|         'url': 'https://www.dagbladet.no/nyheter/rekordstort-russisk-angrep/83325693', | ||||
|         'info_dict': { | ||||
|             'id': '1HW7fYry', | ||||
|             'ext': 'mp4', | ||||
|             'title': 'Putin taler - så skjer dette', | ||||
|             'description': 'md5:3e8bacee33de861a9663d9a3fcc54e5e', | ||||
|             'display_id': 'putin-taler-sa-skjer-dette', | ||||
|             'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+', | ||||
|             'timestamp': 1751043600, | ||||
|             'upload_date': '20250627', | ||||
|         }, | ||||
|     }] | ||||
| 
 | ||||
|     def _real_extract(self, url): | ||||
|         display_id, video_id = self._match_valid_url(url).groups() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 doe1080
					doe1080