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

部分功能优化 #73

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

KKKKKKKEM
Copy link

  1. 修复py3.12环境下部分兼容问题(装饰器)
  2. 修复当alist返回的hash info 为空的情况下报错的问题
  3. source_dir 支持传入多个
  4. 配置文件新增start now 参数,支持服务启动时立刻执行一次

KKKKKKKEM and others added 6 commits December 5, 2024 17:53
py3.12 兼容性修复
- 将 source_dir 参数类型从 str 改为 Union[str, List[str]]
- 这样可以支持传入单个目录字符串或目录列表作为参数
- 新增 add_task 函数统一任务调度逻辑
- 实现 run_server 协程处理一次性任务和调度启动
- 引入 asyncio 库替代 get_event_loop()
- 优化 Alist2Strm 和 Ani2Alist 任务添加逻辑
- 配置文件新增支持 start_now 参数, 默认值为false, 当为 true 的时候, 会执行一次该任务, 再按照调度规则来调度
- 在 Alist2StrmList 和 Ani2AlistList 配置中添加 start_now 参数
- 支持在 source_dir 中传入多个路径
- 优化配置文件示例,增加相关注释说明
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant