diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-08-20 02:05:07 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-08-20 02:05:07 +0700 |
commit | 6f356cbbcf0bb3e3e3abce912d451d1852999b67 (patch) | |
tree | e38b9872ea5bf69527d0a71f6601d0370cc230ab | |
parent | 0a74b4519147aec45dc39756dc55b5755beefbc2 (diff) |
[bbccouk] Extend _ID_REGEX (closes #17270)
-rw-r--r-- | youtube_dl/extractor/bbc.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index 641bf6073..abcfa301d 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -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' |