Skip to content

Commit

Permalink
0.0.1.4版本更新
Browse files Browse the repository at this point in the history
## v0.0.1.4 Changed

### 修复 [Fixed]
- 修复了非Windows系统下创建长中文名文件出错的问题 #34 Johnserf-Seed/TikTokDownload#653
Johnserf-Seed/TikTokDownload#636
Johnserf-Seed/TikTokDownload#483
- 修复了接口缺失时间戳值导致的问题 #23
- 修复了douyin `utils`模块对aweme_id的处理
- 修复了CLI参数合并时的一些问题,确保自定义配置的正确性
- 修复douyin直播嵌套ts文件无法获取字节大小的问题 Johnserf-Seed/TikTokDownload#649
- 修复了douyin收藏作品下载错误的问题 Johnserf-Seed/TikTokDownload#650
- 修复了示例代码片段与开发者文档代码片段
- 修复了cli退出时`base_downloader`出现 UnboundLocalError 错误的问题
- 修复了`base_downloader`下载文件区块时未能正确捕获超时错误
- 修复了在更新配置时缺少自定义配置文件路径的问题
- 修复了`get_or_add_user_data`中的`AttributeError`问题
- 修复了数据库文件名
- 修复了部分自定义配置失效的问题

### 修改 [Change]
- 修改了日志输出,以便更好地了解配置加载情况
- 修改了TokenManager里固定配置的读取方式,增强了配置的易用性和可维护性
- 修改了默认低频主配置文件、F2低频配置文件
- 修改了配置文件与CLI命令,解决了部分自定义配置失效的问题
- 修改了部分方法的签名,提升了代码清晰度和可读性

### 更新 [Update]
- 更新了翻译文件和模板
- 更新了app帮助说明
- 更新了文档内容和静态文件
- 更新了`base_crawler`的POST获取json方法
- 重新设计了处理配置参数的逻辑,提升了性能和灵活性
- 更新了模块捕获错误时显示具体类名
- 更新了默认低频主配置文件和F2低频配置文件
- 更新了依赖库版本,确保兼容性 Johnserf-Seed/TikTokDownload#641
- 更新了TikTok和Douyin的开发者接口文档和代码片段

### 添加 [Add]
- 添加了默认低频配置文件路径,用于生成app配置文件
- 添加了QA文档,提供了常见问题与解决办法
- 添加了app`cli`模块的`merge_config`方法
- 添加了写入配置文件时处理文件权限问题的功能
- 添加了所有单元测试的path注释
- 添加了对于不同操作系统下文件名长度的处理方法
- 添加了不同app`utils`模块的连接失败与错误处理
- 添加了提取有效URL的错误类型
- 添加了douyin msToken值验证

### 改进 [Improve]
- 改进了部分单元测试代码,提升了代码质量
- 改进了douyin的handler_sso_login方法,保证配置文件路径正确
- 优化了异常处理机制,使得错误信息更加详细和可读
- 改进了`base_downloader`无代理配置默认值
- 改进了app`crawler`无代理配置默认值
- 改进了app`handler`类的结构和清晰度
- 改进了日志输出,增加了配置加载情况的显示
- 重写了配置参数的处理逻辑,提升了性能和可维护性

### 删除 [Delete]
- 删除了pot翻译模板文件
- 删除了无用的测试文件和部分注释代码
- 删除了弃用文档
- 移除了一些不必要的依赖和配置项
- 删除了不再使用的接口和方法
- 删除了f2主配置文件中的代理值与无效值
- 删除了一些注释
- 删除了`base_crawler`模块选择随机代理的注释代码

### 其他 [Other]
- 进行了代码格式化和优化,增强了代码的可读性和可维护性
- 解决了一些Bug和错误,提升了程序的稳定性和可靠性
  • Loading branch information
Johnserf-Seed committed Feb 15, 2024
1 parent fe48027 commit c74d0f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion f2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "JohnserfSeed <johnserf-seed@foxmail.com>"
__version__ = "0.0.1.3"
__version__ = "0.0.1.4"
__description_cn__ = "基于[red]异步[/red]的[green]全平台下载工具."
__description_en__ = "[yellow]Asynchronous based [/yellow]full-platform download tool."
__reponame__ = "f2"
Expand Down
2 changes: 1 addition & 1 deletion f2/helps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@Description:helps.py
@Date :2023/02/06 17:36:41
@Author :JohnserfSeed
@version :0.0.1.3
@version :0.0.1.4
@License :Apache License 2.0
@Github :https://github.com/johnserf-seed
@Mail :johnserf-seed@foxmail.com
Expand Down
4 changes: 2 additions & 2 deletions f2/utils/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@Description:__version__.py
@Date :2023/01/15 23:42:17
@Author :JohnserfSeed
@version :0.0.1.3
@version :0.0.1.4
@License :(C)Copyright 2019-2022, Liugroup-NLPR-CASIA
@Github :https://github.com/johnserf-seed
@Mail :johnserf-seed@foxmail.com
Expand All @@ -19,7 +19,7 @@
_description_en = "[yellow]Asynchronous based [/yellow]full-platform download tool."
_reponame = "f2"
_repourl = "https://github.com/Johnserf-Seed/f2"
_version = "0.0.1.3"
_version = "0.0.1.4"

__all__ = [
"_author",
Expand Down

0 comments on commit c74d0f7

Please sign in to comment.