From ccc7329011981dadf40c76053a9d1cbdc544f82a Mon Sep 17 00:00:00 2001 From: df Date: Sat, 10 Jul 2021 17:48:40 +0100 Subject: [PATCH] Support more GBNews URL formats Allow alphanumeric and _ in place of `shows`, which redirect to site's preferred URL --- youtube_dl/extractor/gbnews.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/gbnews.py b/youtube_dl/extractor/gbnews.py index d70301c14..f8ecef02d 100644 --- a/youtube_dl/extractor/gbnews.py +++ b/youtube_dl/extractor/gbnews.py @@ -15,7 +15,8 @@ from ..utils import ( class GBNewsIE(InfoExtractor): '''GB News clips and features''' - _VALID_URL = r'https?://(?:www\.)?gbnews\.uk/(?:shows(?:/(?P[^/]+))?|a)/(?P\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[^/]+))?|a)/(?P\d+)' _PLATFORM = 'safari' _SSMP_URL = 'https://mm-dev.simplestream.com/ssmp/api.php' _TESTS = [{