mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-08-05 02:04:14 +09: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:
parent
4bd72ebcaf
commit
ccc7329011
@ -15,7 +15,8 @@ from ..utils import (
|
|||||||
class GBNewsIE(InfoExtractor):
|
class GBNewsIE(InfoExtractor):
|
||||||
'''GB News clips and features'''
|
'''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'
|
_PLATFORM = 'safari'
|
||||||
_SSMP_URL = 'https://mm-dev.simplestream.com/ssmp/api.php'
|
_SSMP_URL = 'https://mm-dev.simplestream.com/ssmp/api.php'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user