Skip to content

Commit

Permalink
feat: 发布 1.3 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeanAmier committed Jan 4, 2025
1 parent 50ac18c commit b62f298
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 20 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
</ul>
<p>⭐ KS-Downloader 开发计划及进度可前往 <a href="https://github.com/users/JoeanAmier/projects/6">Projects</a> 查阅</p>
<h1>📸 程序截图</h1>
<img src="docs/项目运行截图1.png" alt="">
<p><b>🎥 点击图片观看演示视频</b></p>
<a href="https://www.bilibili.com/video/BV19YC4Y7E8E/"><img src="docs/项目运行截图1.png" alt=""></a>
<hr>
<img src="docs/项目运行截图2.png" alt="">
<a href="https://www.bilibili.com/video/BV19YC4Y7E8E/"><img src="docs/项目运行截图2.png" alt=""></a>
<h1>🥣 使用方法</h1>
<h2>🖱 程序运行</h2>
<p>Mac OS、Windows 10 及以上用户可前往 <a href="https://github.com/JoeanAmier/KS-Downloader/releases/latest">Releases</a> 下载程序压缩包,解压后打开程序文件夹,双击运行 <code>main</code> 即可使用。</p>
Expand Down Expand Up @@ -133,12 +134,6 @@
<td align="center">null</td>
</tr>
<tr>
<td align="center">download_record</td>
<td align="center">bool</td>
<td align="center">是否记录已下载作品 ID,如果启用,将会自动跳过已下载的作品</td>
<td align="center">true</td>
</tr>
<tr>
<td align="center">data_record</td>
<td align="center">bool</td>
<td align="center">是否保存作品数据至文件,文件类型:<code>SQLite</code></td>
Expand Down
10 changes: 6 additions & 4 deletions docs/Release_Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

1. 优化文件名称非法字符处理
2. 优化检查版本更新功能
3. 支持直播域名作品链接
4. 适配新版本 HTTPX 库
5. 更新内置 User-Agent
6. 优化文件下载功能
3. 移除配置文件无效参数
4. 支持直播域名作品链接
5. 适配新版本 HTTPX 库
6. 更新内置 User-Agent
7. 优化文件下载功能
8. 其他细节优化
Binary file modified docs/项目运行截图1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/项目运行截图2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions source/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class KS:
}

DOMAINS: list[str] = [
# "chenzhongtech.com",
"kuaishou.com",
# "kuaishou.cn",
]
Expand Down
1 change: 0 additions & 1 deletion source/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class Config:
"name_format": "发布日期 作者昵称 作品描述",
"cookie": "",
"proxy": None,
"download_record": True,
"data_record": False,
"max_workers": 4,
"cover": "",
Expand Down
3 changes: 0 additions & 3 deletions source/config/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def __init__(self,
proxy: str | dict = None,
cover="",
music=False,
download_record: bool = True,
data_record: bool = False,
chunk=1024 * 1024,
folder_mode: bool = False,
Expand All @@ -59,7 +58,6 @@ def __init__(self,
self.cookie = self.__check_cookie(cookie)
self.cover = self.__check_cover(cover)
self.music = self.check_bool(music, False)
self.download_record = self.check_bool(download_record, True)
self.data_record = self.check_bool(data_record, False)
self.chunk = self.__check_chunk(chunk)
self.folder_mode = self.check_bool(folder_mode, False)
Expand All @@ -78,7 +76,6 @@ def run(self) -> dict:
"cookie": self.cookie,
"cover": self.cover,
"music": self.music,
"download_record": self.download_record,
"data_record": self.data_record,
"max_workers": self.max_workers,
"folder_mode": self.folder_mode,
Expand Down
4 changes: 2 additions & 2 deletions source/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ def __init__(self,
cookie: str,
cover: str,
music: bool,
download_record: bool,
data_record: bool,
chunk: int,
folder_mode: bool,
max_workers: int,
*args,
**kwargs,
):
self.console = console
self.cleaner = cleaner
Expand All @@ -59,7 +60,6 @@ def __init__(self,
self.proxy = proxy
self.cover = cover
self.music = music
self.download_record = download_record
self.data_record = data_record
self.folder_mode = folder_mode
self.chunk = chunk
Expand Down
2 changes: 1 addition & 1 deletion source/module/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@


class Database:
record = 1
__FILE = "KS-Downloader.db"

def __init__(self, ):
self.file = PROJECT_ROOT.joinpath(self.__FILE)
self.database = None
self.cursor = None
self.record = 1

async def __connect_database(self):
self.database = await connect(self.file)
Expand Down
2 changes: 1 addition & 1 deletion source/static/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent
VERSION_MAJOR = 1
VERSION_MINOR = 3
VERSION_BETA = True
VERSION_BETA = False
PROJECT_NAME = f"KS-Downloader V{VERSION_MAJOR}.{
VERSION_MINOR}{" Beta" if VERSION_BETA else ""}"

Expand Down

0 comments on commit b62f298

Please sign in to comment.