diff options
Diffstat (limited to 'youtube_dl/extractor/rtbf.py')
| -rw-r--r-- | youtube_dl/extractor/rtbf.py | 15 | 
1 files changed, 11 insertions, 4 deletions
| diff --git a/youtube_dl/extractor/rtbf.py b/youtube_dl/extractor/rtbf.py index e4215d546..e42b319a3 100644 --- a/youtube_dl/extractor/rtbf.py +++ b/youtube_dl/extractor/rtbf.py @@ -9,8 +9,8 @@ from ..utils import (  class RTBFIE(InfoExtractor): -    _VALID_URL = r'https?://www.rtbf.be/video/[^\?]+\?id=(?P<id>\d+)' -    _TEST = { +    _VALID_URL = r'https?://(?:www\.)?rtbf\.be/(?:video/[^?]+\?.*\bid=|ouftivi/(?:[^/]+/)*[^?]+\?.*\bvideoId=)(?P<id>\d+)' +    _TESTS = [{          'url': 'https://www.rtbf.be/video/detail_les-diables-au-coeur-episode-2?id=1921274',          'md5': '799f334ddf2c0a582ba80c44655be570',          'info_dict': { @@ -19,7 +19,14 @@ class RTBFIE(InfoExtractor):              'title': 'Les Diables au coeur (épisode 2)',              'duration': 3099,          } -    } +    }, { +        # geo restricted +        'url': 'http://www.rtbf.be/ouftivi/heros/detail_scooby-doo-mysteres-associes?id=1097&videoId=2057442', +        'only_matching': True, +    }, { +        'url': 'http://www.rtbf.be/ouftivi/niouzz?videoId=2055858', +        'only_matching': True, +    }]      _QUALITIES = [          ('mobile', 'mobile'), @@ -36,7 +43,7 @@ class RTBFIE(InfoExtractor):          data = self._parse_json(              unescapeHTML(self._search_regex( -                r'data-video="([^"]+)"', webpage, 'data video')), +                r'data-media="([^"]+)"', webpage, 'data video')),              video_id)          if data.get('provider').lower() == 'youtube': | 
