projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e525d9a
)
[drtv] Improve _VALID_URL (#4814)
author
Sergey M․
<dstftw@gmail.com>
Fri, 30 Jan 2015 16:42:11 +0000
(22:42 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 30 Jan 2015 16:42:11 +0000
(22:42 +0600)
youtube_dl/extractor/drtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/drtv.py
b/youtube_dl/extractor/drtv.py
index 510ef04b0602290d44ebc038211b0d12a7d29824..8d113a5e81d75de50c9364b81da522e8c479ea3d 100644
(file)
--- a/
youtube_dl/extractor/drtv.py
+++ b/
youtube_dl/extractor/drtv.py
@@
-6,7
+6,7
@@
from ..utils import parse_iso8601
class DRTVIE(SubtitlesInfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?dr\.dk/tv/se/(?:[^/]+/)
+
(?P<id>[\da-z-]+)(?:[/#?]|$)'
+ _VALID_URL = r'https?://(?:www\.)?dr\.dk/tv/se/(?:[^/]+/)
*
(?P<id>[\da-z-]+)(?:[/#?]|$)'
_TEST = {
'url': 'http://www.dr.dk/tv/se/partiets-mand/partiets-mand-7-8',