[bbc] Fix _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Thu, 3 Dec 2015 14:49:14 +0000 (20:49 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 3 Dec 2015 14:49:14 +0000 (20:49 +0600)
youtube_dl/extractor/bbc.py

index 5f7265a065ad8a3cce9a80a178232e953b74f271..7fb80aa38fc39825fd7338b40fc994ccc0c8a185 100644 (file)
@@ -23,7 +23,7 @@ class BBCCoUkIE(InfoExtractor):
     IE_NAME = 'bbc.co.uk'
     IE_DESC = 'BBC iPlayer'
     _ID_REGEX = r'[pb][\da-z]{7}'
-    _VALID_URL = r'https?://(?:(?:www\.)?bbc\.co\.uk/(?:(?:programmes/(?!articles/)|iplayer(?:/[^/]+)?/(?:episode/|playlist/))|music/clips[/#])|)(?P<id>%s)' % _ID_REGEX
+    _VALID_URL = r'https?://(?:www\.)?bbc\.co\.uk/(?:(?:programmes/(?!articles/)|iplayer(?:/[^/]+)?/(?:episode/|playlist/))|music/clips[/#])(?P<id>%s)' % _ID_REGEX
 
     _MEDIASELECTOR_URLS = [
         # Provides HQ HLS streams with even better quality that pc mediaset but fails