Test - CF in base alla versione di Kodi

This commit is contained in:
Alhaziel
2019-12-03 12:15:50 +01:00
parent 2390909e05
commit 86b722c2dd
27 changed files with 15774 additions and 465 deletions
+5 -1
View File
@@ -409,7 +409,11 @@ def downloadpage(url, **opt):
"""
load_cookies()
import requests
from lib import cloudscraper
# if 'Linux' in os.name and 'ANDROID_STORAGE' not in os.environ and config.get_platform(True)['num_version'] > 18.2:
if config.get_platform(True)['num_version'] > 18.2:
from lib.cloudscraper import cloudscraper
else:
from lib.cloudscraper import cloudscraper_mod as cloudscraper
# Headers by default, if nothing is specified
req_headers = default_headers.copy()