[rtbf] Expand _VALID_URL (Closes #7402)

pull/2/head
Sergey M․ 9 years ago
parent fda2717ef9
commit 114e6025b0

@ -9,16 +9,8 @@ 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 = [{
(?:
video/[^\?]+\?id=|
ouftivi/heros/[^&]+&videoId=
)
(?P<id>\d+)
'''
_TESTS = [
{
'url': 'https://www.rtbf.be/video/detail_les-diables-au-coeur-episode-2?id=1921274', 'url': 'https://www.rtbf.be/video/detail_les-diables-au-coeur-episode-2?id=1921274',
'md5': '799f334ddf2c0a582ba80c44655be570', 'md5': '799f334ddf2c0a582ba80c44655be570',
'info_dict': { 'info_dict': {
@ -27,18 +19,14 @@ class RTBFIE(InfoExtractor):
'title': 'Les Diables au coeur (épisode 2)', 'title': 'Les Diables au coeur (épisode 2)',
'duration': 3099, 'duration': 3099,
} }
}, }, {
{ # geo restricted
'url': 'http://www.rtbf.be/ouftivi/heros/detail_scooby-doo-mysteres-associes?id=1097&videoId=2057442', 'url': 'http://www.rtbf.be/ouftivi/heros/detail_scooby-doo-mysteres-associes?id=1097&videoId=2057442',
'md5': '25aea17e949e1e0c7c41270d60d25f22', 'only_matching': True,
'info_dict': { }, {
'id': '2057442', 'url': 'http://www.rtbf.be/ouftivi/niouzz?videoId=2055858',
'ext': 'mp4', 'only_matching': True,
'title': 'Scooby-Doo, myst\xe8res associ\xe9s', }]
'duration': 1279,
}
},
]
_QUALITIES = [ _QUALITIES = [
('mobile', 'mobile'), ('mobile', 'mobile'),

Loading…
Cancel
Save