Fix per stayonline
This commit is contained in:
+4
-1
@@ -599,6 +599,7 @@ def swzz_get_url(item):
|
|||||||
data = httptools.downloadpage(data).data
|
data = httptools.downloadpage(data).data
|
||||||
logger.debug("##### play /link/ data ##\n%s\n##" % data)
|
logger.debug("##### play /link/ data ##\n%s\n##" % data)
|
||||||
elif 'https://stayonline.pro' in item.url:
|
elif 'https://stayonline.pro' in item.url:
|
||||||
|
# dbg()
|
||||||
id = item.url.split('/')[-2]
|
id = item.url.split('/')[-2]
|
||||||
reqUrl = 'https://stayonline.pro/ajax/linkView.php'
|
reqUrl = 'https://stayonline.pro/ajax/linkView.php'
|
||||||
p = urlencode({"id": id})
|
p = urlencode({"id": id})
|
||||||
@@ -607,11 +608,13 @@ def swzz_get_url(item):
|
|||||||
import json
|
import json
|
||||||
data = json.loads(data)['data']['value']
|
data = json.loads(data)['data']['value']
|
||||||
except:
|
except:
|
||||||
|
data = scrapertools.find_single_match(data, r'"value"\s*:\s*"([^"]+)"')
|
||||||
|
else:
|
||||||
return ''
|
return ''
|
||||||
else:
|
else:
|
||||||
data = item.url
|
data = item.url
|
||||||
|
|
||||||
return data
|
return data.replace('\\','')
|
||||||
|
|
||||||
|
|
||||||
def menuItem(itemlist, filename, title='', action='', url='', contentType='movie', args=[]):
|
def menuItem(itemlist, filename, title='', action='', url='', contentType='movie', args=[]):
|
||||||
|
|||||||
Reference in New Issue
Block a user