aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-12 23:45:47 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-12 23:45:47 +0600
commit28fb109ed0276e85207966ac925e9885c2ed0e7b (patch)
tree6c82d7b5dd9a9a354f6fa3a76af75e4ec477e2cb /youtube_dl/extractor
parent48607afac5ccff69d02ba8cfcfba9dd34bf1fa26 (diff)
[rds] Improve _VALID_URL
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/rds.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/rds.py b/youtube_dl/extractor/rds.py
index fdd3f36a6..796adfdf9 100644
--- a/youtube_dl/extractor/rds.py
+++ b/youtube_dl/extractor/rds.py
@@ -12,9 +12,9 @@ from ..utils import (
class RDSIE(InfoExtractor):
IE_DESC = 'RDS.ca'
- _VALID_URL = r'https?://(?:www\.)?rds\.ca/videos/(?:[^/]+/)+(?P<display_id>[^/]+)-(?P<id>\d+\.\d+)'
+ _VALID_URL = r'https?://(?:www\.)?rds\.ca/vid(?:[eé]|%C3%A9)os/(?:[^/]+/)*(?P<display_id>[^/]+)-(?P<id>\d+\.\d+)'
- _TEST = {
+ _TESTS = [{
'url': 'http://www.rds.ca/videos/football/nfl/fowler-jr-prend-la-direction-de-jacksonville-3.1132799',
'info_dict': {
'id': '3.1132799',
@@ -27,7 +27,10 @@ class RDSIE(InfoExtractor):
'duration': 154.354,
'age_limit': 0,
}
- }
+ }, {
+ 'url': 'http://www.rds.ca/vid%C3%A9os/un-voyage-positif-3.877934',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)