Skip to content

Commit

Permalink
Support more GBNews URL formats
Browse files Browse the repository at this point in the history
Allow alphanumeric and _ in place of `shows`, which redirect to site's preferred URL
  • Loading branch information
dirkf committed Jul 11, 2021
1 parent 4bd72eb commit ccc7329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/gbnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
class GBNewsIE(InfoExtractor):
'''GB News clips and features'''

_VALID_URL = r'https?://(?:www\.)?gbnews\.uk/(?:shows(?:/(?P<display_id>[^/]+))?|a)/(?P<id>\d+)'
# \w+ is normally shows or news, but apparently any word redirects to the correct URL
_VALID_URL = r'https?://(?:www\.)?gbnews\.uk/(?:\w+(?:/(?P<display_id>[^/]+))?|a)/(?P<id>\d+)'
_PLATFORM = 'safari'
_SSMP_URL = 'https://mm-dev.simplestream.com/ssmp/api.php'
_TESTS = [{
Expand Down

0 comments on commit ccc7329

Please sign in to comment.