summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/sbs.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2014-09-22 14:11:08 +0200
committerJaime Marquínez Ferrándiz <[email protected]>2014-09-22 14:11:08 +0200
commit63cddb6477e785ca2bfb6e3bb1ac2af20aa9842c (patch)
tree14bb6b23f9834ca56688f5d0b36067a36ec10d42 /youtube_dl/extractor/sbs.py
parent273dea42487461884926b4d810ebf74e541dc8b0 (diff)
downloadyoutube-dl-63cddb6477e785ca2bfb6e3bb1ac2af20aa9842c.tar.gz
youtube-dl-63cddb6477e785ca2bfb6e3bb1ac2af20aa9842c.zip
[sbs] Recognize urls with format 'http://www.sbs.com.au/ondemand/video/<id>' (#3811)
Diffstat (limited to 'youtube_dl/extractor/sbs.py')
-rw-r--r--youtube_dl/extractor/sbs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/sbs.py b/youtube_dl/extractor/sbs.py
index 214990e7a..409f8540a 100644
--- a/youtube_dl/extractor/sbs.py
+++ b/youtube_dl/extractor/sbs.py
@@ -12,7 +12,7 @@ from ..utils import (
class SBSIE(InfoExtractor):
IE_DESC = 'sbs.com.au'
- _VALID_URL = r'https?://(?:www\.)?sbs\.com\.au/ondemand/video/single/(?P<id>[0-9]+)/'
+ _VALID_URL = r'https?://(?:www\.)?sbs\.com\.au/ondemand/video/(?:single/)?(?P<id>[0-9]+)'
_TESTS = [{
# Original URL is handled by the generic IE which finds the iframe:
@@ -27,6 +27,10 @@ class SBSIE(InfoExtractor):
'thumbnail': 're:http://.*\.jpg',
},
'add_ies': ['generic'],
+ },
+ {
+ 'url': 'http://www.sbs.com.au/ondemand/video/320403011771/Dingo-Conservation-The-Feed',
+ 'only_matching': True,
}]
def _real_extract(self, url):