The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
用 literal_eval 代替 eval (#52)
XiaoYouChR2a00ec84b04e
diff --git a/app/view/main_window.py b/app/view/main_window.pyindex f295f55f..e9e415b6 100644--- a/app/view/main_window.py+++ b/app/view/main_window.py@@ -1,6 +1,7 @@# coding: utf-8import ctypesimport sys+from ast import literal_evalfrom ctypes import byref, c_intfrom pathlib import Path@@ -76,7 +77,7 @@ class MainWindow(MSFluentWindow):logger.debug(f"Unfinished Task is following:{unfinishedTaskInfo}")for i in unfinishedTaskInfo:if i: # 避免空行- i = eval(i)+ i = literal_eval(i)signalBus.addTaskSignal.emit(i['url'], i['filePath'], i['blockNum'], i['fileName'], i["status"], True)else:historyFile.touch()