From d8cc46175441b2775349658453844342ac5c8488 Mon Sep 17 00:00:00 2001 From: Alfa <30527549+alfa-addon@users.noreply.github.com> Date: Thu, 7 Feb 2019 08:40:12 -0500 Subject: [PATCH] Add files via upload --- plugin.video.alfa/channels/doramasmp4.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/channels/doramasmp4.py b/plugin.video.alfa/channels/doramasmp4.py index 7ac71475..c1b41936 100644 --- a/plugin.video.alfa/channels/doramasmp4.py +++ b/plugin.video.alfa/channels/doramasmp4.py @@ -16,7 +16,7 @@ from core.item import Item from platformcode import config, logger from channelselector import get_thumb -host = 'https://www3.doramasmp4.com/' +host = 'https://www4.doramasmp4.com/' IDIOMAS = {'sub': 'VOSE', 'VO': 'VO'} list_language = IDIOMAS.values() @@ -166,6 +166,8 @@ def findvideos(item): itemlist = [] data = get_source(item.url) + new_dom=scrapertools.find_single_match(data,"var web = { domain: '(.*?)'") + patron = 'link="([^"]+)"' matches = re.compile(patron, re.DOTALL).findall(data) @@ -191,7 +193,7 @@ def findvideos(item): video_data = httptools.downloadpage(video_url, headers=headers).data url = scrapertools.find_single_match(video_data, "'file':'([^']+)'") else: - video_url = 'https://www3.doramasmp4.com/api/redirect.php?token=%s' % token + video_url = new_dom+'api/redirect.php?token=%s' % token video_data = httptools.downloadpage(video_url, headers=headers, follow_redirects=False).headers url = scrapertools.find_single_match(video_data['location'], '\d+@@@(.*?)@@@')