From 6dd193c91761198958fd10c5543ac7e9ac065ef4 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Tue, 3 Dec 2019 16:53:49 +0100 Subject: [PATCH] Eccezione per Windows --- core/httptools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/httptools.py b/core/httptools.py index 63d00f6a..d4b92542 100644 --- a/core/httptools.py +++ b/core/httptools.py @@ -409,8 +409,7 @@ def downloadpage(url, **opt): """ load_cookies() import requests - # if 'Linux' in os.name and 'ANDROID_STORAGE' not in os.environ and config.get_platform(True)['num_version'] > 18.2: - if 'ANDROID_STORAGE' not in os.environ and config.get_platform(True)['num_version'] > 18.2: + if 'Linux' in os.name and 'ANDROID_STORAGE' not in os.environ and config.get_platform(True)['num_version'] > 18.2: from lib.cloudscraper import cloudscraper else: from lib.cloudscraper import cloudscraper_mod as cloudscraper