clipwatching: updated test_video_exists

This commit is contained in:
Intel1
2018-01-25 17:42:55 -05:00
committed by GitHub
parent 9eadf04e3b
commit efdc770d3b

View File

@@ -8,10 +8,8 @@ from platformcode import logger
def test_video_exists(page_url):
logger.info("(page_url='%s')" % page_url)
data = httptools.downloadpage(page_url).data
if "no longer exists" in data or "to copyright issues" in data:
if "File Not Found" in data:
return False, "[clipwatching] El video ha sido borrado"
if "please+try+again+later." in data:
return False, "[clipwatching] Error de clipwatching, no se puede generar el enlace al video"
return True, ""