def test_video_exists(page_url): logger.info("(page_url='%s')" % page_url) if "copiapop.com" in page_url: from channels import copiapop logueado, error_message = copiapop.login("copiapop.com") if not logueado: return False, error_message data = httptools.downloadpage(page_url).data if ("File was deleted" or "Not Found" or "File was locked by administrator") in data: return False, "[Copiapop] El archivo no existe o ha sido borrado" return True, ""