aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/bbccouk.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-01-30 23:47:09 +0600
committerSergey M․ <dstftw@gmail.com>2015-01-30 23:47:09 +0600
commit0692ef86ef85da69074b00b5525c13bfde9159de (patch)
tree1a174fa8542e606fe6901e9f2bc011ba86b36125 /youtube_dl/extractor/bbccouk.py
parent439d9be27dc3cf811f3337e40c3222bc8d2ed339 (diff)
[bbccouk] Improve _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/bbccouk.py')
-rw-r--r--youtube_dl/extractor/bbccouk.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbccouk.py b/youtube_dl/extractor/bbccouk.py
index 1cf48fe0d..126c8824c 100644
--- a/youtube_dl/extractor/bbccouk.py
+++ b/youtube_dl/extractor/bbccouk.py
@@ -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|playlist))/)|music/clips[/#])(?P<id>[\da-z]{8})'
+ _VALID_URL = r'https?://(?:www\.)?bbc\.co\.uk/(?:(?:(?:programmes|iplayer(?:/[^/]+)?/(?:episode|playlist))/)|music/clips[/#])(?P<id>[\da-z]{8})'
_TESTS = [
{
@@ -118,6 +118,9 @@ class BBCCoUkIE(SubtitlesInfoExtractor):
}, {
'url': 'http://www.bbc.co.uk/music/clips#p02frcc3',
'only_matching': True,
+ }, {
+ 'url': 'http://www.bbc.co.uk/iplayer/cbeebies/episode/b0480276/bing-14-atchoo',
+ 'only_matching': True,
}
]