diff --git a/core/httptools.py b/core/httptools.py index d4b92542..8c1f180e 100644 --- a/core/httptools.py +++ b/core/httptools.py @@ -409,7 +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 'Linux' in os.environ['OS'] 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