mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue