]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[dplay] Add support for dplay.no
authorSergey M․ <dstftw@gmail.com>
Sat, 27 Feb 2016 15:42:08 +0000 (21:42 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 27 Feb 2016 15:42:08 +0000 (21:42 +0600)
youtube_dl/extractor/dplay.py

index 87071c4f8df0cb6aff19e821ae674f2ca83f71ba..a638c827c7e01ed8acee28a091d3cdcff510ada0 100644 (file)
@@ -10,7 +10,7 @@ from ..utils import int_or_none
 
 
 class DPlayIE(InfoExtractor):
-    _VALID_URL = r'http://(?P<domain>it\.dplay\.com|www\.dplay\.(?:dk|se))/[^/]+/(?P<id>[^/?#]+)'
+    _VALID_URL = r'http://(?P<domain>it\.dplay\.com|www\.dplay\.(?:dk|se|no))/[^/]+/(?P<id>[^/?#]+)'
 
     _TESTS = [{
         'url': 'http://it.dplay.com/take-me-out/stagione-1-episodio-25/',
@@ -64,6 +64,9 @@ class DPlayIE(InfoExtractor):
             'episode_number': 12,
             'age_limit': 0,
         },
+    }, {
+        'url': 'http://www.dplay.no/pga-tour/season-1-hoydepunkter-18-21-februar/',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):