mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:01:28 +00:00
[mangomolo] fix domain regex
This commit is contained in:
parent
30d9e20938
commit
d05ef09d9d
|
@ -2256,7 +2256,7 @@ def _playlist_from_matches(matches, getter=None, ie=None):
|
||||||
|
|
||||||
# Look for Mangomolo embeds
|
# Look for Mangomolo embeds
|
||||||
mobj = re.search(
|
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+)|
|
video\?.*?\bid=(?P<video_id>\d+)|
|
||||||
index\?.*?\bchannelid=(?P<channel_id>(?:[A-Za-z0-9+/=]|%2B|%2F|%3D)+)
|
index\?.*?\bchannelid=(?P<channel_id>(?:[A-Za-z0-9+/=]|%2B|%2F|%3D)+)
|
||||||
|
|
|
@ -41,13 +41,13 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
class MangomoloVideoIE(MangomoloBaseIE):
|
class MangomoloVideoIE(MangomoloBaseIE):
|
||||||
IE_NAME = 'mangomolo:video'
|
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
|
_IS_LIVE = False
|
||||||
|
|
||||||
|
|
||||||
class MangomoloLiveIE(MangomoloBaseIE):
|
class MangomoloLiveIE(MangomoloBaseIE):
|
||||||
IE_NAME = 'mangomolo:live'
|
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
|
_IS_LIVE = True
|
||||||
|
|
||||||
def _get_real_id(self, page_id):
|
def _get_real_id(self, page_id):
|
||||||
|
|
Loading…
Reference in a new issue