From d3a9848004fc0a95e00efa2d46cb46d0a94f9fae Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 13 Apr 2020 11:53:52 +0200 Subject: [PATCH] Fix per stayonline --- core/support.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/support.py b/core/support.py index f7394a37..b3d0c38c 100755 --- a/core/support.py +++ b/core/support.py @@ -599,6 +599,7 @@ def swzz_get_url(item): data = httptools.downloadpage(data).data logger.debug("##### play /link/ data ##\n%s\n##" % data) elif 'https://stayonline.pro' in item.url: + # dbg() id = item.url.split('/')[-2] reqUrl = 'https://stayonline.pro/ajax/linkView.php' p = urlencode({"id": id}) @@ -607,11 +608,13 @@ def swzz_get_url(item): import json data = json.loads(data)['data']['value'] except: + data = scrapertools.find_single_match(data, r'"value"\s*:\s*"([^"]+)"') + else: return '' else: data = item.url - return data + return data.replace('\\','') def menuItem(itemlist, filename, title='', action='', url='', contentType='movie', args=[]):