mirror of
https://github.com/ayasa520/redroid-script.git
synced 2026-11-25 06:14:32 +08:00
Fix variable naming and hardcoded path
Remove Dockerfile init
This commit is contained in:
1 parent
4ccbc05426
commit
dcb48bb2a4
11 files changed
+45
-25
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ def run(args):
|
||||
|
||||
def download_file(url, f_name):
|
||||
md5 = ""
|
||||
response = requests.get(url, stream=True, proxies={"https":"127.0.0.1:7890"})
|
||||
response = requests.get(url, stream=True)
|
||||
total_size_in_bytes = int(response.headers.get('content-length', 0))
|
||||
block_size = 1024 # 1 Kibibyte
|
||||
progress_bar = tqdm(total=total_size_in_bytes, unit='iB', unit_scale=True)
|
||||
|
||||
Reference in new issue
Block a user