Test - CF per XBOX

This commit is contained in:
Alhaziel
2019-12-03 18:11:56 +01:00
parent 3b533d4ef9
commit ef822e749d
208 changed files with 115980 additions and 78 deletions
+2 -1
View File
@@ -409,7 +409,8 @@ 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.name and 'ANDROID_STORAGE' not in os.environ and config.get_platform(True)['num_version'] > 18.2) \
or ('nt' in os.name and 'ProfileDrive' in os.environ and 'LogDrive' in os.environ):
from lib.cloudscraper import cloudscraper
else:
from lib.cloudscraper import cloudscraper_mod as cloudscraper