コード例 #1
0
ファイル: copiapop.py プロジェクト: CYBERxNUKE/xbmc-addon
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, ""
コード例 #2
0
ファイル: copiapop.py プロジェクト: d3v3l0p1n/mitvspain
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, ""