]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[sbs] Recognize urls with format 'http://www.sbs.com.au/ondemand/video/<id>' (#3811)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 22 Sep 2014 12:11:08 +0000 (14:11 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 22 Sep 2014 12:11:08 +0000 (14:11 +0200)
youtube_dl/extractor/sbs.py

index 214990e7a7e974383dc35d3dc4f042cc8d5cfb24..409f8540a0b2e2ef9db1ab3c5746d7779a2e5db3 100644 (file)
@@ -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):