From 5edba21558f2e05a4e1a6d0ffb6ca9a44e9d377d Mon Sep 17 00:00:00 2001 From: Feng4 Date: Sun, 6 Dec 2020 20:05:05 +0800 Subject: [PATCH] Update core.py --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index de04995..d90cbd9 100755 --- a/core.py +++ b/core.py @@ -284,7 +284,7 @@ def download_file_with_filename(url, filename, path, conf: config.Config, filepa for i in range(retry_count): try: - if switch == 1: + if switch == 1 or switch == '1': if not os.path.exists(path): os.makedirs(path) proxies = get_proxy(proxy, proxytype)