]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bbccouk] Extend _ID_REGEX (closes #17270)
authorSergey M․ <dstftw@gmail.com>
Sun, 19 Aug 2018 19:05:07 +0000 (02:05 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 19 Aug 2018 19:05:07 +0000 (02:05 +0700)
youtube_dl/extractor/bbc.py

index 641bf60738eaf59b27c4d8eea00a99cae763f75e..abcfa301d9abf4e76a01d42cac71a01e06e2f1eb 100644 (file)
@@ -29,7 +29,7 @@ from ..compat import (
 class BBCCoUkIE(InfoExtractor):
     IE_NAME = 'bbc.co.uk'
     IE_DESC = 'BBC iPlayer'
-    _ID_REGEX = r'[pbw][\da-z]{7}'
+    _ID_REGEX = r'(?:[pbm][\da-z]{7}|w[\da-z]{7,14})'
     _VALID_URL = r'''(?x)
                     https?://
                         (?:www\.)?bbc\.co\.uk/
@@ -236,6 +236,12 @@ class BBCCoUkIE(InfoExtractor):
         }, {
             'url': 'http://www.bbc.co.uk/programmes/w3csv1y9',
             'only_matching': True,
+        }, {
+            'url': 'https://www.bbc.co.uk/programmes/m00005xn',
+            'only_matching': True,
+        }, {
+            'url': 'https://www.bbc.co.uk/programmes/w172w4dww1jqt5s',
+            'only_matching': True,
         }]
 
     _USP_RE = r'/([^/]+?)\.ism(?:\.hlsv2\.ism)?/[^/]+\.m3u8'