diff options
author | Remita Amine <remitamine@gmail.com> | 2020-12-14 19:01:16 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-12-14 19:01:16 +0100 |
commit | 84f19c026fc54e8793354a3bf1a1fe634e97e276 (patch) | |
tree | f9db8e94f9e98f1c468d1135c154b8b6e0dc7ba3 | |
parent | 6bde5492b6af38d671b1bc9fe48457aa30f0de90 (diff) |
[sky] relax SkySports URL regex (closes #27435)
-rw-r--r-- | youtube_dl/extractor/sky.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/youtube_dl/extractor/sky.py b/youtube_dl/extractor/sky.py index ea30d6e62..681691004 100644 --- a/youtube_dl/extractor/sky.py +++ b/youtube_dl/extractor/sky.py @@ -41,8 +41,8 @@ class SkyBaseIE(InfoExtractor): class SkySportsIE(SkyBaseIE): - _VALID_URL = r'https?://(?:www\.)?skysports\.com/watch/video/(?P<id>[0-9]+)' - _TEST = { + _VALID_URL = r'https?://(?:www\.)?skysports\.com/watch/video/([^/]+/)*(?P<id>[0-9]+)' + _TESTS = [{ 'url': 'http://www.skysports.com/watch/video/10328419/bale-its-our-time-to-shine', 'md5': '77d59166cddc8d3cb7b13e35eaf0f5ec', 'info_dict': { @@ -52,7 +52,13 @@ class SkySportsIE(SkyBaseIE): 'description': 'md5:e88bda94ae15f7720c5cb467e777bb6d', }, 'add_ie': ['Ooyala'], - } + }, { + 'url': 'https://www.skysports.com/watch/video/sports/f1/12160544/abu-dhabi-gp-the-notebook', + 'only_matching': True, + }, { + 'url': 'https://www.skysports.com/watch/video/tv-shows/12118508/rainford-brent-how-ace-programme-helps', + 'only_matching': True, + }] class SkyNewsIE(SkyBaseIE): |