]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bbccouk] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Fri, 2 Jan 2015 14:37:54 +0000 (20:37 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 2 Jan 2015 14:37:54 +0000 (20:37 +0600)
youtube_dl/extractor/bbccouk.py

index 53aea0ec9046ef985cf9dfc5fc239c33b3ad8dcb..73fe66b01e063581f6738c0d3e43107b030510ee 100644 (file)
@@ -10,7 +10,7 @@ from ..compat import compat_HTTPError
 class BBCCoUkIE(SubtitlesInfoExtractor):
     IE_NAME = 'bbc.co.uk'
     IE_DESC = 'BBC iPlayer'
-    _VALID_URL = r'https?://(?:www\.)?bbc\.co\.uk/(?:programmes|iplayer/episode)/(?P<id>[\da-z]{8})'
+    _VALID_URL = r'https?://(?:www\.)?bbc\.co\.uk/(?:programmes|iplayer/(?:episode|playlist))/(?P<id>[\da-z]{8})'
 
     _TESTS = [
         {
@@ -84,6 +84,9 @@ class BBCCoUkIE(SubtitlesInfoExtractor):
                 # rtmp download
                 'skip_download': True,
             }
+        }, {
+            'url': 'http://www.bbc.co.uk/iplayer/playlist/p01dvks4',
+            'only_matching': True,
         }
     ]