Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复了一些bug,增加了系统任务栏进度条 #97

Merged
merged 31 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
95ba82e
:bug: 修复重写eventFilter有概率会导致下载失败的bug
Zeal-L Sep 30, 2023
f2c7e53
:art: 优化BiliPlus请求特征与下载异常提示
shadlc Oct 8, 2023
9d10ddb
Merge branch 'develop' of https://github.com/Zeal-L/BiliBili-Manga-Do…
shadlc Oct 8, 2023
e667877
🐛✨ 修复导致进度条没有正确被清除的bug; 改用poetry作为包管理器; 优化下载速度统计逻辑; 新增windows系统任务栏进度条
Zeal-L Nov 26, 2023
bccb6f8
👷 Update github actions; add easy-taskbar-progress.dll to app.spec
Zeal-L Nov 26, 2023
450e822
🎨 Update Python version badge
Zeal-L Nov 26, 2023
8c65a99
🚧 Update file path for easy-taskbar-progress.dll
Zeal-L Nov 26, 2023
60f8cdd
fix typo
Zeal-L Nov 26, 2023
882391c
Merge branch 'main' into develop
Zeal-L Nov 26, 2023
6881122
Adding CBZ export option with embedded ComicInfo.xml
averageFOSSenjoyer Nov 27, 2023
f19f316
🐛 修复Episode类中save_method动态转变可能会导致的错误
Zeal-L Nov 27, 2023
3a9fb32
Merge branch 'Zeal-L:develop' into develop
averageFOSSenjoyer Nov 27, 2023
4a460e0
Removing iso8601 dependency, adding comments to ComicInfoXML class
averageFOSSenjoyer Nov 27, 2023
71917cf
typo fix
averageFOSSenjoyer Nov 27, 2023
fc6606f
Merge pull request #98 from averageFOSSenjoyer/develop
Zeal-L Nov 28, 2023
887c2e8
:zap::bug: 提升性能,修复BiliPlus遗留问题
shadlc Nov 28, 2023
491047e
:bug: 我的库存读取问题修复
shadlc Nov 28, 2023
6344a42
:art: doc补漏,传参优化
shadlc Nov 28, 2023
564c6fe
:ambulance: 修复了我的库存更新按钮缺少的点击之后本地元数据的读取
shadlc Nov 28, 2023
f56f1f3
:bug: :zap: 优化了现有的明显卡顿
shadlc Dec 1, 2023
020a2c6
:ambulance: 修复章节详情无法多选的问题
shadlc Dec 1, 2023
82277fc
:fire: 不好意思带多了,小改一下
shadlc Dec 1, 2023
0defa1d
:zap: :bug: 章节详情插入变得丝滑,cookie检测小瑕疵修复
shadlc Dec 4, 2023
4b4a486
:bug: 禁用Biliplus的cookie可还行,改!
shadlc Dec 4, 2023
0c79961
:art: 恢复启动时,联网异步更新我的库存,同时优化mainGUI传参
shadlc Dec 4, 2023
ca37ecb
🎨 格式化代码,准备好发布新版本
Zeal-L Dec 5, 2023
492adbb
🐛 修复总进度条回退的问题;以及程序关闭后下载线程仍在继续的问题
Zeal-L Dec 5, 2023
e394061
:bug: 现在正在下载的任务也会立刻终止了
shadlc Dec 5, 2023
156f293
📖 更新描述文档
Zeal-L Dec 6, 2023
2edcfcc
Update README.md
Zeal-L Dec 6, 2023
7b1f011
🐛 恢复误删掉的下载后清除任务
Zeal-L Dec 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ body:
id: version
attributes:
label: 哔哩哔哩漫画下载器版本号
placeholder: v1.4.0
placeholder: v1.4.1
validations:
required: true
- type: dropdown
Expand All @@ -50,6 +50,7 @@ body:
- Windows11
- Linux
- Mac
- 其他 - 请在问题描述里附加
description: 目前主要适配Windows平台
validations:
required: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -23,5 +23,5 @@ jobs:
- name: Analysing the code with pylint
id: pylint
run: |
pipenv run pylint $(git ls-files '*.py' | grep -v "PySide_src")
poetry run pylint $(git ls-files '*.py' | grep -v "PySide_src")
continue-on-error: true
25 changes: 0 additions & 25 deletions Pipfile

This file was deleted.

1,225 changes: 0 additions & 1,225 deletions Pipfile.lock

This file was deleted.

36 changes: 24 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
# 🎉 哔哩哔哩漫画下载器 💖

![GitHub Pipenv locked Python version](https://img.shields.io/github/pipenv/locked/python-version/Zeal-L/BiliBili-Manga-Downloader)
![GitHub top language](https://img.shields.io/github/languages/top/Zeal-L/BiliBili-Manga-Downloader)
<!-- ![GitHub top language](https://img.shields.io/github/languages/top/Zeal-L/BiliBili-Manga-Downloader) -->

![GitHub Python version](https://img.shields.io/badge/python-v3.12-blue)
![platform](https://img.shields.io/badge/platform-Windows_|_Linux-blue)
![Scc Count Badge](https://sloc.xyz/github/Zeal-L/BiliBili-Manga-Downloader/)
![GitHub repo size](https://img.shields.io/github/repo-size/Zeal-L/BiliBili-Manga-Downloader)
![GitHub - License](https://img.shields.io/github/license/Zeal-L/BiliBili-Manga-Downloader)
<!-- ![GitHub Lines of code](https://img.shields.io/tokei/lines/github/Zeal-L/BiliBili-Manga-Downloader) -->

![GitHub closed issues](https://img.shields.io/github/issues-closed/zeal-l/BiliBili-Manga-Downloader)
![GitHub commit activity](https://img.shields.io/github/commit-activity/y/Zeal-L/BiliBili-Manga-Downloader)
![GitHub last commit](https://img.shields.io/github/last-commit/Zeal-L/BiliBili-Manga-Downloader)
![GitHub all releases - Download](https://img.shields.io/github/downloads/Zeal-L/BiliBili-Manga-Downloader/total)


## 💬 简介

**由于作者某天实在是受不了B漫网页版的观看体验 ~~(时而混入漫画中的广告,无法便捷快速的放大图片,进度栏作死一样的反复横跳挡视线等等...)~~,再加上作者的仓鼠属性 😛**

**因此 将将将~ 🎉 一个好用的哔哩哔哩漫画下载器就此诞生!**

## ✨ 主要功能 / 特性

- **黑科技下载未解锁章节!**
- **提供多种可选的保存格式**
- **支持已购被下架漫画下载**
Expand All @@ -37,6 +39,7 @@
- **多种主题选择**

## 📸 相关截图

**使用哔站解析**
<div align=center>
<img src="https://github.com/Zeal-L/BiliBili-Manga-Downloader/assets/72005386/39f4e66f-50f1-410b-8761-971eeb9cf30e" width=90%>
Expand All @@ -53,6 +56,8 @@
</div>

## 📝 使用指南
- **下载地址**: [**Releases**](https://github.com/Zeal-L/BiliBili-Manga-Downloader/releases)

- **本软件有两种下载解析方法:**
- **B站解析**
- 只能下载免费章节和用户已解锁的章节
Expand All @@ -79,8 +84,8 @@
- **如果想用"本地库存"功能,需要注意的是:下载好的漫画章节名以及保存的 `元数据.json` 都不能更改,否则将会无法正确读取漫画数据**
- **已购被下架的漫画虽然不能通过关键词搜索到,但是可以通过漫画ID直接访问,如果你购买过那么就可以成功下载**


## 💕 友情推荐

**🔥 下面我要隆重的推荐一款搭配本软件使用的本地漫画浏览器 ~~(可以说就是为了这点儿醋 我才包的这顿饺子)~~**

<div align=center><img src="https://user-images.githubusercontent.com/72005386/222974497-18b568e7-5b2e-416f-8d14-22ec68323570.png" width=100%></div>
Expand All @@ -96,6 +101,7 @@
- 唯一的缺点好像就是对条漫不太支持,也有可能是我没找到选项,有知道的小伙伴可以联系我,谢啦~

## 💡 TODO List ~~(在可见的未来...)~~

- 更多开发进度详情请看 [**项目清单表**](https://github.com/users/Zeal-L/projects/2/views/1)
- **PS: 也欢迎小伙伴们多多的在Issues里提意见,不管是Bug还是操作逻辑,界面优化等等作者统统笑纳~**
- 🟦 缓存更多资源,减少网络请求
Expand All @@ -113,25 +119,27 @@
- ✅ ~~给打包好的程序添加版本号版权等属性信息~~

## 🏗️ 本地构建 / 编译
- **首先确保你安装了 Python >= 3.11 和 git**
- **本项目使用了 pipenv 依靠虚拟环境进行依赖项管理,所以不必担心影响自己的本地环境**

- **首先确保你安装了 Python 3.12 和 git**
- **本项目使用了 poetry 依靠虚拟环境进行依赖项管理,所以不必担心影响自己的本地环境**
- **作者已经贴心的帮后来者们准备好了两个集成脚本~**
- **接下来的操作都在项目的根目录运行命令行指令**
- **构建项目**
1. 执行 `git clone https://github.com/Zeal-L/BiliBili-Manga-Downloader.git`
2. 执行 `cd BiliBili-Manga-Downloader/`
3. 执行 `sh setup.sh` 等待项目构建完成
4. 执行 `pipenv shell` 进入虚拟环境
4. 执行 `poetry shell` 进入虚拟环境
5. 执行 `python3 app.py` 即可运行程序
- **打包编译**
1. 执行 `sh build.sh` 等待项目打包完成
2. 这一步可能会花费一定时间,中途需要手动确认安全漏洞检查
2. 打包好的程序会被移动到项目的根目录 "哔哩哔哩漫画下载器.exe"
3. 打包好的程序会被移动到项目的根目录 "哔哩哔哩漫画下载器.exe"
- **彻底清除项目 ~~(删库跑路)~~**
1. 执行 `pipenv --rm `
1. 执行 `poetry env remove python3`
2. 执行 `cd .. && rm -rf BiliBili-Manga-Downloader/`

## 🔨 PR 格式

- 请PR到 `develop` 分支
- 遵循项目已有代码的 `python doc` 格式
- 明确的注释信息
Expand All @@ -148,27 +156,31 @@
[**详细日志**](UPDATE.md)

## 🍻 联系方式

欢迎进群讨论程序,漫画,资源分享, 提交问题等等

- Q群号:244029317

## 🙈 PS

**做项目不易,求星星!求赞助!如果本项目对你有帮助,请作者喝杯☕吧~**

<img src="https://user-images.githubusercontent.com/72005386/223096480-8d57ceef-0b33-4653-86bf-55e6094fcb9b.jpg" width=20%> <img src="https://user-images.githubusercontent.com/72005386/223096520-e5d95ac8-044d-4644-8500-3770e5ad81f8.jpg" width=18.5%>

## 🔒️ 许可协议

- 本项目在遵循 [**GNU Affero General Public License v3.0**](https://www.gnu.org/licenses/agpl-3.0.en.html) 许可协议下进行发布
- 若对代码进行了修改,请务必遵循许可协议的规定进行发布
- **特别提醒,未经合法授权,擅自使用本项目的内容可能涉及侵权行为,我们保留追究相应法律责任的权利**

## ⚠️ 免责申明

- **本软件提供的所有内容,仅可用作学习交流使用,未经版权方以及原作者授权,禁止用于商业目的以及其他用途。请在下载24小时内删除。为尊重版权,请前往资源的原始发布网站观看,支持原创,谢谢**
- 本软件只提供漫画解析,不提供任何个人信息上传、存储到服务器的功能
- 本软件解析得到的所有内容均来自哔哩哔哩漫画官方上传、分享,其版权均归原作者以及哔哩哔哩漫画所有。内容提供者、上传者应对其提供、上传的内容承担全部责任
- 因使用本软件产生的版权问题,软件作者概不负责
- 我们强烈建议您详细阅读并遵守许可协议的规定,以保障您与他人的权益和合法使用

## 🌟 Star History

[![Star History Chart](https://api.star-history.com/svg?repos=Zeal-L/BiliBili-Manga-Downloader&type=Date)](https://star-history.com/#Zeal-L/BiliBili-Manga-Downloader)


14 changes: 14 additions & 0 deletions UPDATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
## ⚰️ 更新记录

## ⚰️ 更新记录
### **[v1.4.1](https://github.com/Zeal-L/BiliBili-Manga-Downloader/releases/tag/v1.4.1)** - *2022-11-26*
- 新增功能:
- 现在在 Windows 环境支持下方的系统任务栏显示下载进度了
- 修复bug:
- 修复了一个下载完成后可能会导致进度条没有正确被清除的bug
- 修复了一个导致下载速度错误显示,越来越大的bug
- 优化设置:
- 取消启动时扫描本地漫画,加快启动速度
- 优化下载速度统计逻辑,现在更加平稳和准确了
- 开发相关:
- 改用 `poetry` 作为包管理器
- 升级 `Python` 到 `3.12` 版本

### **[v1.4.0](https://github.com/Zeal-L/BiliBili-Manga-Downloader/releases/tag/v1.4.0)** - *2022-09-30*
- 新增功能:
- 现在支持 `Linux` 平台了!
Expand Down
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@


import ctypes
from sys import argv, platform
from sys import argv, exit, platform

from PySide6.QtWidgets import QApplication, QMessageBox

from src.ui.MainGUI import MainGUI
from src.Utils import __version__
from src.Utils import __main_window_title__, __version__

if __name__ == "__main__":
app = QApplication.instance() or QApplication(argv)

if (
platform == "win32"
and ctypes.windll.user32.FindWindowW(None, f"哔哩哔哩漫画下载器 v{__version__}") != 0
and ctypes.windll.user32.FindWindowW(None, __main_window_title__) != 0
):
box = QMessageBox.information(None, "提示", "有一个我已经不满足不了你吗?\n\t...(。•ˇ‸ˇ•。) ...")
exit(0)
Expand Down
2 changes: 1 addition & 1 deletion app.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ a = Analysis(
['./app.py'],
pathex=[],
binaries=[],
datas=[],
datas=[('./src/assets/easy-taskbar-progress.dll', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
Expand Down
20 changes: 4 additions & 16 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,13 @@
echo -e "\033[32m\n 项目构建开始 ... \n\033[0m"

echo -e "\033[34m\n 显示现有的依赖包 ... \n\033[0m"
pipenv run pipenv graph
poetry show

echo -e "\033[34m\n 检查PyUp Safety的安全漏洞 ... \n\033[0m"
pipenv run pipenv check

echo -e "\033[34m\n 是否继续?(y/n) \n\033[0m"
read -r isContinue
if [ "$isContinue" != "y" ]; then
exit 0
fi

echo -e "\033[34m\n 验证Pipfile.lock中的哈希值是最新的 ... \n\033[0m"
pipenv run pipenv verify

echo -e "\033[34m\n 更新lock文件锁定的依赖版本 ... \n\033[0m"
pipenv run pipenv update
echo -e "\033[34m\n 更新现有的依赖包 ... \n\033[0m"
poetry update

echo -e "\033[34m\n pyinstaller 封装中 ... \n\033[0m"
pipenv run pyinstaller app.spec
poetry run pyinstaller app.spec

echo -e "\033[34m\n pyinstaller 移动可执行文件到根目录 ... \n\033[0m"
cp -r dist/* ./
Expand Down
Loading
Loading