The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
提高最大线程数为256, 添加README.md
XiaoYouChR6d45fbfcd6ab
diff --git a/README.md b/README.mdnew file mode 100644index 00000000..798e5c26--- /dev/null+++ b/README.md@@ -0,0 +1,125 @@+<!-- PROJECT LOGO -->+<br />+<div align="center">+ <a href="https://github.com/XiaoYouChR/Ghost-Downloader-3">+ <img src="images/logo.png" alt="Logo" width="100" height="100">+ </a>++<h3 align="center">Ghost-Downloader 3</h3>++[![Contributors][contributors-shield]][contributors-url]+[![Forks][forks-shield]][forks-url]+[![Stargazers][stars-shield]][stars-url]+[![Issues][issues-shield]][issues-url]+[![License][license-shield]][license-url]++ <p align="center">+ 一款基于 PySide6 的多线程下载器, 使用 QThread 实现多线程功能+ <br />+ <a href="https://github.com/XiaoYouChR/Ghost-Downloader-3/issues/new?labels=bug&template=bug-report---.md">Report Bug</a>+ ·+ <a href="https://github.com/XiaoYouChR/Ghost-Downloader-3/issues/new?labels=enhancement&template=feature-request---.md">Request Feature</a>+ </p>+</div>++++<!-- TABLE OF CONTENTS -->+<details>+ <summary>目录</summary>+ <ol>+ <li><a href="#about-the-project">关于此项目</a></li>+ <li><a href="#roadmap">计划</a></li>+ <li><a href="#contributing">Contributing</a></li>+ <li><a href="#license">License</a></li>+ <li><a href="#contact">Contact</a></li>+ <li><a href="#acknowledgments">Acknowledgments</a></li>+ </ol>+</details>++++<!-- ABOUT THE PROJECT -->+## 关于本项目++[![Product Name Screen Shot][product-screenshot]](https://space.bilibili.com/437313511)++在兴趣驱动下完成的一个下载器,是本人的第一个Python项目😫,本来的目的是帮B站上一位UP主做资源整合的😵。支持多线程下载、断点续传、下载记录、校验文件等功能。特点是能像IDM一样智能分块但又不需要合并文件。但是Python和Qt💩一样的内存占用成为项目很大的槽点😭++++<!-- ROADMAP -->+## 计划++- [ ] 全局设置+- [ ] 更详细的下载信息+- [ ] 内存占用优化+ - [ ] 更换 UI 库+ - [ ] 用协程来代替部分多线程功能++到 [Open issues](https://github.com/XiaoYouChR/Ghost-Downloader-3/issues) 页面查看所有被请求的功能 (以及已知的问题) 。++++++<!-- CONTRIBUTING -->+## 贡献++贡献让开源社区成为了一个非常适合学习、启发和创新的地方。你所做出的任何贡献都是**受人尊敬**的。++如果你有好的建议,请分支(Fork)本仓库并且创建一个拉取请求(Pull Request)。你也可以简单地创建一个议题(Issue),并且添加标签「Enhancement」。不要忘记给项目点一个 Star!再次感谢!++1. 复刻(Fork)本项目+2. 创建你的 Feature 分支 (git checkout -b feature/AmazingFeature)+3. 提交你的变更 (git commit -m 'Add some AmazingFeature')+4. 推送到该分支 (git push origin feature/AmazingFeature)+5. 创建一个拉取请求(Pull Request)++++++<!-- LICENSE -->+## 许可证++根据 GPL v3.0 许可证分发。打开 `LICENSE` 查看更多内容。++++++<!-- CONTACT -->+## 联系++[@晓游ChR](https://space.bilibili.com/437313511) - [email protected]+++++++<!-- 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!++++++<!-- MARKDOWN LINKS & IMAGES -->+<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->+[contributors-shield]: https://img.shields.io/github/contributors/XiaoYouChR/Ghost-Downloader-3.svg?style=for-the-badge+[contributors-url]: https://github.com/XiaoYouChR/Ghost-Downloader-3/graphs/contributors+[forks-shield]: https://img.shields.io/github/forks/XiaoYouChR/Ghost-Downloader-3.svg?style=for-the-badge+[forks-url]: https://github.com/XiaoYouChR/Ghost-Downloader-3/network/members+[stars-shield]: https://img.shields.io/github/stars/XiaoYouChR/Ghost-Downloader-3.svg?style=for-the-badge+[stars-url]: https://github.com/XiaoYouChR/Ghost-Downloader-3/stargazers+[issues-shield]: https://img.shields.io/github/issues/XiaoYouChR/Ghost-Downloader-3.svg?style=for-the-badge+[issues-url]: https://github.com/XiaoYouChR/Ghost-Downloader-3/issues+[license-shield]: https://img.shields.io/github/license/XiaoYouChR/Ghost-Downloader-3.svg?style=for-the-badge+[license-url]: https://github.com/XiaoYouChR/Ghost-Downloader-3/blob/master/LICENSE.txt+[product-screenshot]: images/screenshot.png\ No newline at end of filediff --git a/app/common/download_task.py b/app/common/download_task.pyindex abf03f28..9ccd48c8 100644--- a/app/common/download_task.py+++ b/app/common/download_task.py@@ -1,4 +1,3 @@-import osimport refrom pathlib import Pathfrom time import time, sleepdiff --git a/app/components/Ui_TaskCard.py b/app/components/Ui_TaskCard.pyindex 2e285b25..4b77b9fe 100644--- a/app/components/Ui_TaskCard.py+++ b/app/components/Ui_TaskCard.py@@ -9,12 +9,10 @@################################################################################from PySide6.QtCore import (QCoreApplication, QMetaObject, QSize, Qt)-from PySide6.QtGui import (QIcon)from PySide6.QtWidgets import (QHBoxLayout, QSizePolicy, QSpacerItem,QVBoxLayout)-from qfluentwidgets import (BodyLabel, PixmapLabel, ProgressBar,- TitleLabel, ToolButton, PrimaryToolButton, DropDownToolButton, RoundMenu, Action)+from qfluentwidgets import (BodyLabel, PixmapLabel, TitleLabel, ToolButton, PrimaryToolButton, DropDownToolButton, RoundMenu, Action)from qfluentwidgets import FluentIcon as FIFdiff --git a/app/components/add_task_option_dialog.py b/app/components/add_task_option_dialog.pyindex e03fa482..c16aad63 100644--- a/app/components/add_task_option_dialog.py+++ b/app/components/add_task_option_dialog.py@@ -98,7 +98,7 @@ class AddTaskOptionDialog(MaskDialogBase):# Choose Threading Cardself.blockNumCard = RangeSettingCard(- RangeConfigItem("Material", "AcrylicBlurRadius", 24, RangeValidator(1, 128)),+ RangeConfigItem("Material", "AcrylicBlurRadius", 24, RangeValidator(1, 256)),FIF.CHAT,"下载线程数",'下载线程越多,下载越快,同时也越吃性能',diff --git a/app/components/download_option_dialog.py b/app/components/download_option_dialog.pyindex 86de7920..a790911b 100644--- a/app/components/download_option_dialog.py+++ b/app/components/download_option_dialog.py@@ -87,7 +87,7 @@ class DownloadOptionDialog(MaskDialogBase):# Choose Threading Cardself.blockNumCard = RangeSettingCard(- RangeConfigItem("Material", "AcrylicBlurRadius", 24, RangeValidator(1, 128)),+ RangeConfigItem("Material", "AcrylicBlurRadius", 24, RangeValidator(1, 256)),FIF.CHAT,"下载线程数",'下载线程越多,下载越快,同时也越吃性能',diff --git a/app/components/task_card.py b/app/components/task_card.pyindex e33b1a4f..521ce429 100644--- a/app/components/task_card.py+++ b/app/components/task_card.py@@ -4,19 +4,18 @@ import refrom pathlib import Pathfrom time import sleep-from PySide6.QtCore import QThread, Signal, QFileInfo, Qt, QSize+from PySide6.QtCore import QThread, Signal, QFileInfofrom PySide6.QtGui import QPixmapfrom PySide6.QtWidgets import QFileIconProviderfrom loguru import loggerfrom qfluentwidgets import CardWidget+from qfluentwidgets import FluentIcon as FIFfrom .Ui_TaskCard import Ui_TaskCardfrom .task_progress_bar import TaskProgressBarfrom ..common.download_task import DownloadTaskfrom ..common.tool_hub import getWindowsProxy, getReadableSize-from qfluentwidgets import FluentIcon as FIF-Headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.64"}diff --git a/app/view/home_interface.py b/app/view/home_interface.pyindex 737791d4..f2c31345 100644--- a/app/view/home_interface.py+++ b/app/view/home_interface.py@@ -6,7 +6,7 @@ from PySide6.QtCore import Qt, QThread, Signalfrom PySide6.QtGui import QPixmapfrom PySide6.QtWidgets import QWidget, QFrame, QVBoxLayoutfrom loguru import logger-from qfluentwidgets import ScrollArea, TitleLabel, ExpandLayout+from qfluentwidgets import ScrollArea, TitleLabelfrom ..common.tool_hub import getWindowsProxyfrom ..components.system_info_card import SystemInfoCarddiff --git a/logo.png b/images/logo.pngsimilarity index 100%rename from logo.pngrename to images/logo.pngdiff --git a/images/screenshot.png b/images/screenshot.pngnew file mode 100644index 00000000..cbe6db4dBinary files /dev/null and b/images/screenshot.png differdiff --git a/logo_old.png b/logo_old.pngdeleted file mode 100644index fa02a503..00000000Binary files a/logo_old.png and /dev/null differdiff --git a/main.py b/main.pyindex 26233847..9d979d5f 100644--- a/main.py+++ b/main.py@@ -3,26 +3,24 @@ import ctypesimport sysimport timeimport warnings-import win32guiimport darkdetect-from loguru import logger--# noinspection PyUnresolvedReferences-import Res_rc-+import win32guifrom PySide6.QtCore import Qt, QSharedMemoryfrom PySide6.QtGui import QColorfrom PySide6.QtWidgets import QApplication+from loguru import loggerfrom qfluentwidgets import setTheme, Theme, setThemeColor+# noinspection PyUnresolvedReferences+import Res_rcfrom app.view.main_window import MainWindow# create applicationshareMemory = QSharedMemory()shareMemory.setKey("Ghost Downloader")if shareMemory.attach():- win32gui.ShowWindow(win32gui.FindWindow("Qt642QWindowIcon", "Ghost Downloader"), 1)+ win32gui.ShowWindow(win32gui.FindWindow(None, "Ghost Downloader"), 1)sys.exit(-1)shareMemory.create(1)