Skip to content

Commit

Permalink
[sky] relax SkySports URL regex (closes #27435)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Dec 14, 2020
1 parent 6bde549 commit 84f19c0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions youtube_dl/extractor/sky.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def _real_extract(self, url):


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': {
Expand All @@ -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):
Expand Down

0 comments on commit 84f19c0

Please sign in to comment.