]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[ufctv] add support for ufcfightpass.imgdge.com and ufcfightpass.imggaming.com domain...
authorRemita Amine <remitamine@gmail.com>
Sat, 7 Dec 2019 18:23:19 +0000 (19:23 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 7 Dec 2019 18:23:19 +0000 (19:23 +0100)
youtube_dl/extractor/imggaming.py
youtube_dl/extractor/ufctv.py

index 10d26adab5776766b55d59ba8e86361ae47db74a..e11f92053bce3764695d87fe786980abeddae0df 100644 (file)
@@ -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 = {
index 665eb1cb78886d5a5446b643afd93f3a30933eb7..3d74ba0714e2f71f87e476abab6e9d62c902ee52 100644 (file)
@@ -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'