]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[rtbf] Make www optional in _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Sun, 8 Nov 2015 11:03:21 +0000 (17:03 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 8 Nov 2015 11:03:21 +0000 (17:03 +0600)
youtube_dl/extractor/rtbf.py

index acf10e253c8cedbce6242fdb4ae0eb3f8f7ddd6f..e42b319a3e224aa6b078cad7756e5c44b7f620d8 100644 (file)
@@ -9,7 +9,7 @@ from ..utils import (
 
 
 class RTBFIE(InfoExtractor):
-    _VALID_URL = r'https?://www\.rtbf\.be/(?:video/[^?]+\?.*\bid=|ouftivi/(?:[^/]+/)*[^?]+\?.*\bvideoId=)(?P<id>\d+)'
+    _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',