Skip to content

Commit

Permalink
[ufctv] add support for ufcfightpass.imgdge.com and ufcfightpass.imgg…
Browse files Browse the repository at this point in the history
…aming.com domains(closes #23343)
  • Loading branch information
remitamine authored and pareronia committed Jun 22, 2020
1 parent 5002abf commit c973c00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/imggaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ImgGamingBaseIE(InfoExtractor):
_HEADERS = None
_MANIFEST_HEADERS = {'Accept-Encoding': 'identity'}
_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):
self._HEADERS = {
Expand Down
4 changes: 2 additions & 2 deletions youtube_dl/extractor/ufctv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@


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'

0 comments on commit c973c00

Please sign in to comment.