mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[ufctv] add support for ufcfightpass.imgdge.com and ufcfightpass.imggaming.com domains(closes #23343)
This commit is contained in:
parent
1d31b7ca04
commit
6633103f8e
2 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ class ImgGamingBaseIE(InfoExtractor):
|
||||||
_HEADERS = None
|
_HEADERS = None
|
||||||
_MANIFEST_HEADERS = {'Accept-Encoding': 'identity'}
|
_MANIFEST_HEADERS = {'Accept-Encoding': 'identity'}
|
||||||
_REALM = None
|
_REALM = None
|
||||||
_VALID_URL_TEMPL = r'https?://(?P<domain>(?:(?:app|www)\.)?%s)/(?P<type>live|playlist|video)/(?P<id>\d+)(?:\?.*?\bplaylistId=(?P<playlist_id>\d+))?'
|
_VALID_URL_TEMPL = r'https?://(?P<domain>%s)/(?P<type>live|playlist|video)/(?P<id>\d+)(?:\?.*?\bplaylistId=(?P<playlist_id>\d+))?'
|
||||||
|
|
||||||
def _real_initialize(self):
|
def _real_initialize(self):
|
||||||
self._HEADERS = {
|
self._HEADERS = {
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
|
|
||||||
|
|
||||||
class UFCTVIE(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'
|
_NETRC_MACHINE = 'ufctv'
|
||||||
_REALM = 'ufc'
|
_REALM = 'ufc'
|
||||||
|
|
||||||
|
|
||||||
class UFCArabiaIE(ImgGamingBaseIE):
|
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'
|
_NETRC_MACHINE = 'ufcarabia'
|
||||||
_REALM = 'admufc'
|
_REALM = 'admufc'
|
||||||
|
|
Loading…
Reference in a new issue