projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac56335
)
[rts] Improve _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Tue, 2 Dec 2014 16:24:47 +0000
(22:24 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 2 Dec 2014 16:24:47 +0000
(22:24 +0600)
youtube_dl/extractor/rts.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rts.py
b/youtube_dl/extractor/rts.py
index c31049c0e69a3bc11eba32541ce0f158964a1549..dc59a5e5c0da8c6e2001b411a03451604ca190f3 100644
(file)
--- a/
youtube_dl/extractor/rts.py
+++ b/
youtube_dl/extractor/rts.py
@@
-15,7
+15,7
@@
from ..utils import (
class RTSIE(InfoExtractor):
IE_DESC = 'RTS.ch'
- _VALID_URL = r'
^
https?://(?:www\.)?rts\.ch/(?:(?:[^/]+/){2,}(?P<id>[0-9]+)-(?P<display_id>.+?)\.html|play/tv/[^/]+/video/(?P<display_id_new>.+?)\?id=(?P<id_new>[0-9]+))'
+ _VALID_URL = r'https?://(?:www\.)?rts\.ch/(?:(?:[^/]+/){2,}(?P<id>[0-9]+)-(?P<display_id>.+?)\.html|play/tv/[^/]+/video/(?P<display_id_new>.+?)\?id=(?P<id_new>[0-9]+))'
_TESTS = [
{