Skip to content

The only downloader you need. 下载器的集大成者。

更新版本号至 v3.3.3, 更新README.md

XiaoYouChRdcb5e9ef23f8
diff --git a/README.md b/README.md
index 6992329d..013d6093 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+## 由于项目开发者高三开学,项目暂时停止更新😭 可加QQ群获取项目作者最新消息: 531928387
+
<!-- PROJECT LOGO -->
<br />
<div align="center">
@@ -51,10 +53,12 @@
<!-- ROADMAP -->
## 计划
-- [ ] 全局设置
+- [x] 全局设置
+- [x] 浏览器插件
- [ ] 更详细的下载信息
- [ ] 内存占用优化
- - [ ] 更换 UI 库
+ - [x] 升级 Qt 版本
+ - [x] 实现 HttpClient 复用
- [ ] 用协程来代替部分多线程功能
到 [Open issues](https://github.com/XiaoYouChR/Ghost-Downloader-3/issues) 页面查看所有被请求的功能 (以及已知的问题) 。
@@ -102,11 +106,12 @@
<!-- ACKNOWLEDGMENTS -->
## 致谢
-* [PyQt-Fluent-Widgets](https://github.com/zhiyiYo/PyQt-Fluent-Widgets) 很方便的 UI 库
-* [D2wnloader](https://github.com/DamageControlStudio/D2wnloader) 参考了此项目的代码
-* [Best-README-Template](https://github.com/othneildrew/Best-README-Template) Best README Template!
-
+* [PyQt-Fluent-Widgets](https://github.com/zhiyiYo/PyQt-Fluent-Widgets) 强大且方便的 UI 库
+* [D2wnloader](https://github.com/DamageControlStudio/D2wnloader) 学习了此项目的写入文件方式
+* [Best-README-Template](https://github.com/othneildrew/Best-README-Template) 方便的 README 模板
+* [@ZhiYiyo](https://github.com/zhiyiYo/) 是大佬!为该项目的开发提供了很多帮助!
+* [@一只透明人-](https://space.bilibili.com/554365148/) 测试了几乎从 Ghost-Downloader-1 开始的每个程序版本
diff --git a/app/common/config.py b/app/common/config.py
index 33d33772..e47352ba 100644
--- a/app/common/config.py
+++ b/app/common/config.py
@@ -2,6 +2,7 @@
from PySide6.QtCore import QDir
from PySide6.QtWidgets import QApplication
+from loguru import logger
from qfluentwidgets import (qconfig, QConfig, ConfigItem, OptionsConfigItem, BoolValidator,
OptionsValidator, RangeConfigItem, RangeValidator,
FolderValidator)
@@ -38,4 +39,7 @@ FEEDBACK_URL = "https://github.com/XiaoYouChR/Ghost-Downloader-3/issues"
cfg = Config()
-qconfig.load('{}/Ghost Downloader 配置文件.json'.format(QApplication.applicationDirPath()), cfg)
\ No newline at end of file
+try:
+ qconfig.load('{}/Ghost Downloader 配置文件.json'.format(QApplication.applicationDirPath()), cfg)
+except Exception as e:
+ logger.error(e)
diff --git a/main.py b/main.py
index d26dd3aa..1ff23a0f 100644
--- a/main.py
+++ b/main.py
@@ -1,14 +1,23 @@
# coding:utf-8
+import sys
+
+from PySide6.QtCore import Qt, QSharedMemory
+from PySide6.QtWidgets import QApplication
+
+# create application
+app = QApplication(sys.argv)
+app.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)
+
import ctypes
import os
-import sys
+
import time
import warnings
import darkdetect
-from PySide6.QtCore import Qt, QSharedMemory
+
from PySide6.QtGui import QColor
-from PySide6.QtWidgets import QApplication
+
from loguru import logger
from qfluentwidgets import setTheme, Theme, setThemeColor
@@ -31,7 +40,8 @@ if shareMemory.attach():
shareMemory.create(1)
# config loguru
-logger.add("Ghost Downloader 运行日志.log", rotation="512 KB")
+# logger.add("Ghost Downloader 运行日志.log", rotation="512 KB")
+logger.add('{}/Ghost Downloader 运行日志.log'.format(QApplication.applicationDirPath()))
logger.info(f"Ghost Downloader is launched at {time.time_ns()}")
warnings.warn = logger.warning
@@ -42,10 +52,6 @@ else:
os.environ["QT_ENABLE_HIGHDPI_SCALING"] = "0"
os.environ["QT_SCALE_FACTOR"] = str(cfg.get(cfg.dpiScale))
-# create application
-app = QApplication(sys.argv)
-app.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)
-
# Enable Theme
setTheme(Theme.DARK if darkdetect.isDark() else Theme.LIGHT, save=False)
@@ -105,8 +111,8 @@ except Exception as e:
w = MainWindow()
# loading plugins
-# pluginsPath=os.path.join(app.applicationDirPath(), "plugins")
-pluginsPath=("./plugins")
+pluginsPath=os.path.join(app.applicationDirPath(), "plugins")
+# pluginsPath=("./plugins")
loadPlugins(w, pluginsPath)
try: # 静默启动