Fixed some small problems
This commit is contained in:
parent
040c929bdc
commit
9541bbfa15
2
main.py
2
main.py
@ -133,6 +133,7 @@ class GMCLCore(object):
|
|||||||
except:
|
except:
|
||||||
return "Error:Wrong parameter for game memory."
|
return "Error:Wrong parameter for game memory."
|
||||||
def Download(self,DownloadFrom,DownloadTo,ThreadNum=3):
|
def Download(self,DownloadFrom,DownloadTo,ThreadNum=3):
|
||||||
|
'''Multi-Thread download function'''
|
||||||
if(DownloadFrom=="" or DownloadTo==""):
|
if(DownloadFrom=="" or DownloadTo==""):
|
||||||
return "Error:Wrong online address or local address for download."
|
return "Error:Wrong online address or local address for download."
|
||||||
else:
|
else:
|
||||||
@ -159,6 +160,5 @@ class GMCLCore(object):
|
|||||||
t = MultiThreadDownload(url,start,end,fd,self.__UserAgent)
|
t = MultiThreadDownload(url,start,end,fd,self.__UserAgent)
|
||||||
t.start()
|
t.start()
|
||||||
mtd_list.append(t)
|
mtd_list.append(t)
|
||||||
|
|
||||||
for i in mtd_list:
|
for i in mtd_list:
|
||||||
i.join()
|
i.join()
|
||||||
|
Reference in New Issue
Block a user