projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[generic/ooyala] Add support for Ooyala embeds on SBN network websites (Fixes #4859)
[youtube-dl]
/
youtube_dl
/
extractor
/
rts.py
diff --git
a/youtube_dl/extractor/rts.py
b/youtube_dl/extractor/rts.py
index 82d7830780058b136379688c26f1e49f790845ee..5e84c109802e34ce8f57496ee3b7e2cd409c0788 100644
(file)
--- a/
youtube_dl/extractor/rts.py
+++ b/
youtube_dl/extractor/rts.py
@@
-4,18
+4,20
@@
from __future__ import unicode_literals
import re
from .common import InfoExtractor
import re
from .common import InfoExtractor
+from ..compat import (
+ compat_str,
+)
from ..utils import (
int_or_none,
parse_duration,
parse_iso8601,
unescapeHTML,
from ..utils import (
int_or_none,
parse_duration,
parse_iso8601,
unescapeHTML,
- compat_str,
)
class RTSIE(InfoExtractor):
IE_DESC = 'RTS.ch'
)
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 = [
{
_TESTS = [
{
@@
-117,6
+119,10
@@
class RTSIE(InfoExtractor):
'thumbnail': 're:^https?://.*\.image',
'view_count': int,
},
'thumbnail': 're:^https?://.*\.image',
'view_count': int,
},
+ },
+ {
+ 'url': 'http://www.rts.ch/play/tv/le-19h30/video/le-chantier-du-nouveau-parlement-vaudois-a-permis-une-trouvaille-historique?id=6348280',
+ 'only_matching': True,
}
]
}
]