projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
114e602
)
[rtbf] Make www optional in _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Sun, 8 Nov 2015 11:03:21 +0000
(17:03 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 8 Nov 2015 11:03:21 +0000
(17:03 +0600)
youtube_dl/extractor/rtbf.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rtbf.py
b/youtube_dl/extractor/rtbf.py
index acf10e253c8cedbce6242fdb4ae0eb3f8f7ddd6f..e42b319a3e224aa6b078cad7756e5c44b7f620d8 100644
(file)
--- a/
youtube_dl/extractor/rtbf.py
+++ b/
youtube_dl/extractor/rtbf.py
@@
-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',