fix per warning translatePath kodi 19, altri piccoli ritocchi
This commit is contained in:
@@ -8,7 +8,8 @@ from platformcode import config, logger
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
|
||||
data = httptools.downloadpage(page_url, cookies=False).data
|
||||
global data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
if 'File you are looking for is not found.' in data:
|
||||
return False, config.get_localized_string(70449) % "Onlystream"
|
||||
|
||||
@@ -17,7 +18,7 @@ def test_video_exists(page_url):
|
||||
|
||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||
logger.info("url=" + page_url)
|
||||
data = httptools.downloadpage(page_url).data
|
||||
global data
|
||||
# logger.info(data)
|
||||
video_urls = support.get_jwplayer_mediaurl(data, 'Onlystream')
|
||||
return video_urls
|
||||
|
||||
Reference in New Issue
Block a user