From 24064493d0976da81ac2dad966b6e87352f7c7e3 Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Fri, 15 Sep 2017 11:49:05 -0500 Subject: [PATCH] Update fastplay.py --- plugin.video.alfa/servers/fastplay.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/servers/fastplay.py b/plugin.video.alfa/servers/fastplay.py index 1d958299..91a36a94 100755 --- a/plugin.video.alfa/servers/fastplay.py +++ b/plugin.video.alfa/servers/fastplay.py @@ -8,10 +8,12 @@ from platformcode import logger def test_video_exists(page_url): logger.info("(page_url='%s')" % page_url) - data = httptools.downloadpage(page_url).data + data = httptools.downloadpage(page_url) - if "Object not found" in data or "longer exists on our servers" in data: + if "Object not found" in data.data or "longer exists on our servers" in data.data: return False, "[Fastplay] El archivo no existe o ha sido borrado" + if data.code == 500: + return False, "[Fastplay] Error interno del servidor" return True, ""