1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-06-02 10:29:28 +00:00

Support more GBNews URL formats

Allow alphanumeric and _ in place of `shows`, which redirect to site's preferred URL
This commit is contained in:
df 2021-07-10 17:48:40 +01:00
parent 4bd72ebcaf
commit ccc7329011

View file

@ -15,7 +15,8 @@ from ..utils import (
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 = [{