Spaces:
Runtime error
Runtime error
vorstcavry
commited on
Commit
•
f221e3e
1
Parent(s):
cd900ea
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def Gitclone(URI:str,ClonePath:pathlib.Path ) -> int :
|
|
26 |
def DownLoad(URI:str,DownloadPath:pathlib.Path,DownLoadFileName:str ) -> int:
|
27 |
if (DownloadPath / DownLoadFileName).is_file(): return 0
|
28 |
for z in range(10):
|
29 |
-
i=subprocess.run([r"
|
30 |
if(i.returncode == 0 ):
|
31 |
del i
|
32 |
gc.collect()
|
|
|
26 |
def DownLoad(URI:str,DownloadPath:pathlib.Path,DownLoadFileName:str ) -> int:
|
27 |
if (DownloadPath / DownLoadFileName).is_file(): return 0
|
28 |
for z in range(10):
|
29 |
+
i=subprocess.run([r"aria2",r"-c",r"-x" ,r"16", r"-s",r"16", r"-k" ,r"1M" ,r"-m",r"0",r"--enable-mmap=false",r"--console-log-level=error",r"-d",str(DownloadPath),r"-o",DownLoadFileName,URI]);
|
30 |
if(i.returncode == 0 ):
|
31 |
del i
|
32 |
gc.collect()
|