minor fixes

This commit is contained in:
alfa-addon
2017-08-22 18:22:23 -04:00
parent 8da966a9b1
commit 5b0f67d6ea
3 changed files with 38 additions and 28 deletions
+2 -2
View File
@@ -17,7 +17,8 @@ def test_video_exists(page_url):
data = httptools.downloadpage(page_url, headers={'Referer': referer}).data
if data == "File was deleted":
return False, "[Streamplay] El archivo no existe o ha sido borrado"
elif "Video is processing now" in data:
return False, "[Streamplay] El archivo se está procesando"
return True, ""
@@ -26,7 +27,6 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
referer = re.sub(r"embed-|player-", "", page_url)[:-5]
data = httptools.downloadpage(page_url, headers={'Referer': referer}).data
matches = scrapertools.find_single_match(data, "<script type=[\"']text/javascript[\"']>(eval.*?)</script>")
data = jsunpack.unpack(matches).replace("\\", "")