From: Remita Amine Date: Sat, 7 Dec 2019 18:23:19 +0000 (+0100) Subject: [ufctv] add support for ufcfightpass.imgdge.com and ufcfightpass.imggaming.com domain... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=6633103f8e607b23530a2c5846aeb4c9c73f4031;p=youtube-dl [ufctv] add support for ufcfightpass.imgdge.com and ufcfightpass.imggaming.com domains(closes #23343) --- diff --git a/youtube_dl/extractor/imggaming.py b/youtube_dl/extractor/imggaming.py index 10d26adab..e11f92053 100644 --- a/youtube_dl/extractor/imggaming.py +++ b/youtube_dl/extractor/imggaming.py @@ -20,7 +20,7 @@ class ImgGamingBaseIE(InfoExtractor): _HEADERS = None _MANIFEST_HEADERS = {'Accept-Encoding': 'identity'} _REALM = None - _VALID_URL_TEMPL = r'https?://(?P(?:(?:app|www)\.)?%s)/(?Plive|playlist|video)/(?P\d+)(?:\?.*?\bplaylistId=(?P\d+))?' + _VALID_URL_TEMPL = r'https?://(?P%s)/(?Plive|playlist|video)/(?P\d+)(?:\?.*?\bplaylistId=(?P\d+))?' def _real_initialize(self): self._HEADERS = { diff --git a/youtube_dl/extractor/ufctv.py b/youtube_dl/extractor/ufctv.py index 665eb1cb7..3d74ba071 100644 --- a/youtube_dl/extractor/ufctv.py +++ b/youtube_dl/extractor/ufctv.py @@ -5,12 +5,12 @@ from .imggaming import ImgGamingBaseIE class UFCTVIE(ImgGamingBaseIE): - _VALID_URL = ImgGamingBaseIE._VALID_URL_TEMPL % r'(?:ufc\.tv|(?:ufc)?fightpass\.com)' + _VALID_URL = ImgGamingBaseIE._VALID_URL_TEMPL % r'(?:(?:app|www)\.)?(?:ufc\.tv|(?:ufc)?fightpass\.com)|ufcfightpass\.img(?:dge|gaming)\.com' _NETRC_MACHINE = 'ufctv' _REALM = 'ufc' class UFCArabiaIE(ImgGamingBaseIE): - _VALID_URL = ImgGamingBaseIE._VALID_URL_TEMPL % r'ufcarabia\.(?:ae|com)' + _VALID_URL = ImgGamingBaseIE._VALID_URL_TEMPL % r'(?:(?:app|www)\.)?ufcarabia\.(?:ae|com)' _NETRC_MACHINE = 'ufcarabia' _REALM = 'admufc'