mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[rtbf] Expand _VALID_URL (Closes #7402)
This commit is contained in:
		| @@ -9,36 +9,24 @@ from ..utils import ( | |||||||
|  |  | ||||||
|  |  | ||||||
| class RTBFIE(InfoExtractor): | class RTBFIE(InfoExtractor): | ||||||
|     _VALID_URL = r'''(?x) |     _VALID_URL = r'https?://www\.rtbf\.be/(?:video/[^?]+\?.*\bid=|ouftivi/(?:[^/]+/)*[^?]+\?.*\bvideoId=)(?P<id>\d+)' | ||||||
|         https?://www\.rtbf\.be/ |     _TESTS = [{ | ||||||
|             (?: |         'url': 'https://www.rtbf.be/video/detail_les-diables-au-coeur-episode-2?id=1921274', | ||||||
|                 video/[^\?]+\?id=| |         'md5': '799f334ddf2c0a582ba80c44655be570', | ||||||
|                 ouftivi/heros/[^&]+&videoId= |         'info_dict': { | ||||||
|             ) |             'id': '1921274', | ||||||
|         (?P<id>\d+) |             'ext': 'mp4', | ||||||
|     ''' |             'title': 'Les Diables au coeur (épisode 2)', | ||||||
|     _TESTS = [ |             'duration': 3099, | ||||||
|         { |         } | ||||||
|             'url': 'https://www.rtbf.be/video/detail_les-diables-au-coeur-episode-2?id=1921274', |     }, { | ||||||
|             'md5': '799f334ddf2c0a582ba80c44655be570', |         # geo restricted | ||||||
|             'info_dict': { |         'url': 'http://www.rtbf.be/ouftivi/heros/detail_scooby-doo-mysteres-associes?id=1097&videoId=2057442', | ||||||
|                 'id': '1921274', |         'only_matching': True, | ||||||
|                 'ext': 'mp4', |     }, { | ||||||
|                 'title': 'Les Diables au coeur (épisode 2)', |         'url': 'http://www.rtbf.be/ouftivi/niouzz?videoId=2055858', | ||||||
|                 'duration': 3099, |         'only_matching': True, | ||||||
|             } |     }] | ||||||
|         }, |  | ||||||
|         { |  | ||||||
|             'url': 'http://www.rtbf.be/ouftivi/heros/detail_scooby-doo-mysteres-associes?id=1097&videoId=2057442', |  | ||||||
|             'md5': '25aea17e949e1e0c7c41270d60d25f22', |  | ||||||
|             'info_dict': { |  | ||||||
|                 'id': '2057442', |  | ||||||
|                 'ext': 'mp4', |  | ||||||
|                 'title': 'Scooby-Doo, myst\xe8res associ\xe9s', |  | ||||||
|                 'duration': 1279, |  | ||||||
|             } |  | ||||||
|         }, |  | ||||||
|     ] |  | ||||||
|  |  | ||||||
|     _QUALITIES = [ |     _QUALITIES = [ | ||||||
|         ('mobile', 'mobile'), |         ('mobile', 'mobile'), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․