From 7be79532dbdf34ca3198b0d547128ddbe8dd129c Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Sat, 9 Nov 2019 11:18:47 +0100 Subject: [PATCH] Fix Mixdrop --- servers/mixdrop.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/servers/mixdrop.py b/servers/mixdrop.py index 8bad88fd..4f146ebe 100644 --- a/servers/mixdrop.py +++ b/servers/mixdrop.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- - +import re from core import httptools from core import scrapertoolsV2 from platformcode import config, logger @@ -22,9 +22,11 @@ def get_video_url(page_url, premium=False, user="", password="", video_password= # streaming url data = httptools.downloadpage(page_url).data - jsCode = scrapertoolsV2.find_single_match(data, '') + data = re.sub(r'\n|\t|\r', ' ', data) + data = re.sub(r'>\s\s*<', '><', data) + jsCode = scrapertoolsV2.find_single_match(data, r'') jsUnpacked = jsunpack.unpack(jsCode) - url = "https://" + scrapertoolsV2.find_single_match(jsUnpacked, 'MDCore\.vsrc="//([^"]+)') + url = "https://" + scrapertoolsV2.find_single_match(jsUnpacked, r'MDCore\.vsrc="//([^"]+)') itemlist.append([".mp4 [MixDrop]", url])