]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[mangomolo] fix domain regex
authorRemita Amine <remitamine@gmail.com>
Sat, 17 Sep 2016 07:11:01 +0000 (08:11 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 17 Sep 2016 07:11:01 +0000 (08:11 +0100)
youtube_dl/extractor/generic.py
youtube_dl/extractor/mangomolo.py

index e0130594240f2dd6a73181f7066ec79f752af1fa..92a6e51461e63fe14d3c68296f91d9c0bc89ef8c 100644 (file)
@@ -2256,7 +2256,7 @@ class GenericIE(InfoExtractor):
 
         # Look for Mangomolo embeds
         mobj = re.search(
-            r'''(?x)<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?admin\.mangomolo.com/analytics/index\.php/customers/embed/
+            r'''(?x)<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?admin\.mangomolo\.com/analytics/index\.php/customers/embed/
                 (?:
                     video\?.*?\bid=(?P<video_id>\d+)|
                     index\?.*?\bchannelid=(?P<channel_id>(?:[A-Za-z0-9+/=]|%2B|%2F|%3D)+)
index 2db503f2b13dc8499a6f665ef97d3e09cfcdf35b..1885ac7df59684767022f95c5c35ffeb65cd33d5 100644 (file)
@@ -41,13 +41,13 @@ class MangomoloBaseIE(InfoExtractor):
 
 class MangomoloVideoIE(MangomoloBaseIE):
     IE_NAME = 'mangomolo:video'
-    _VALID_URL = r'https?://admin\.mangomolo.com/analytics/index\.php/customers/embed/video\?.*?\bid=(?P<id>\d+)'
+    _VALID_URL = r'https?://admin\.mangomolo\.com/analytics/index\.php/customers/embed/video\?.*?\bid=(?P<id>\d+)'
     _IS_LIVE = False
 
 
 class MangomoloLiveIE(MangomoloBaseIE):
     IE_NAME = 'mangomolo:live'
-    _VALID_URL = r'https?://admin\.mangomolo.com/analytics/index\.php/customers/embed/index\?.*?\bchannelid=(?P<id>(?:[A-Za-z0-9+/=]|%2B|%2F|%3D)+)'
+    _VALID_URL = r'https?://admin\.mangomolo\.com/analytics/index\.php/customers/embed/index\?.*?\bchannelid=(?P<id>(?:[A-Za-z0-9+/=]|%2B|%2F|%3D)+)'
     _IS_LIVE = True
 
     def _get_real_id(self, page_id):