jxxghp
b8ef5d1efc
feat: add session management to MessageChain
...
- Implemented session ID creation and reuse based on user activity, with a timeout of 15 minutes.
- Added remote command to clear user sessions, enhancing user session management capabilities.
- Updated Command class to include a new command for clearing sessions.
2025-11-18 08:41:05 +08:00
jxxghp
6a492198a8
fix post_message
2025-11-17 13:33:01 +08:00
jxxghp
d572e523ba
优化Agent上下文大小
2025-11-17 09:57:12 +08:00
jxxghp
22858cc1e9
Merge pull request #5100 from Seed680/v2
2025-11-06 18:43:41 +08:00
noone
a0329a3eb0
feat(rss): 支持自定义User-Agent获取RSS。目前有些站点没有配置UA时会不能正确获取RSS内容
...
- 在RSS方法中新增ua参数用于指定User-Agent
- 更新RequestUtils调用以传递自定义User-Agent
- 修改torrents链中RSS解析逻辑以支持站点配置的ua字段
- 设置默认超时时间为30秒以增强稳定性
2025-11-06 16:32:01 +08:00
景大侠
0e13d22c97
fix 适配新版飞牛影视
2025-11-04 13:25:18 +08:00
Attente
fcd0908032
fix(transfer): 修复指定part不生效的问题
2025-11-01 17:56:23 +08:00
jxxghp
438d3210bc
fix agent
2025-11-01 10:39:08 +08:00
jxxghp
d523c7c916
fix pydantic
2025-11-01 09:51:23 +08:00
Attente
7421ca09cc
fix(transfer): 修复部分情况下无法正确统计已完成任务总大小的问题
...
- get_directory_size 使用 os.scandir 递归遍历提升性能
- 当任务文件项存储类型为 local 时,若其大小为空,则通过 SystemUtils 获取目录大小以确保
完成任务的准确统计。
fix(cache): 修改 fresh 和 async_fresh 默认参数为 True
refactor(filemanager): 移除整理后总大小计算逻辑
- 删除 TransHandler 中对整理目录总大小的冗余计算,提升性能并简化流程。
perf(system): 使用 scandir 优化文件扫描性能
- 重构 SystemUtils 中的文件扫描方法(list_files、exists_file、list_sub_files),
- 采用 os.scandir 替代 glob 实现,并预编译正则表达式以提升目录遍历与文件匹配性能。
2025-10-23 19:21:24 +08:00
jxxghp
0c58eae5e7
Merge pull request #5060 from wikrin/cached
2025-10-19 22:37:33 +08:00
Attente
b609567c38
feat(cache): 引入 fresh 和 async_fresh 以控制缓存行为
...
- 新增 `fresh` 和 `async_fresh` 用于在同步和异步函数中
临时禁用缓存。
- 通过 `_fresh` 这一 contextvars 变量实现上下文感知的
缓存刷新机制
- 修改了 `cached` 装饰器逻辑,在 `is_fresh()` 为 True
时跳过缓存读取。
- 修复 download 模块中路径处理问题,使用 `Path.as_posix()` 确保跨平台兼容性。
2025-10-19 22:31:50 +08:00
jxxghp
003781e903
add MoviePilot AI agent implementation and workflow manager
2025-10-18 21:55:31 +08:00
jxxghp
6fee532c96
add ai agent
2025-10-18 21:26:36 +08:00
景大侠
8bb3eaa320
fix 获取上次搜索结果时产生的NoneType异常
...
glitchtip#14
2025-09-18 17:23:20 +08:00
jxxghp
440a773081
fix
2025-09-16 17:56:44 +08:00
景大侠
14961323c3
fix umask
2025-09-15 22:01:00 +08:00
景大侠
f8c682b183
fix: 修复刮削的文件权限只有0600的问题
2025-09-15 21:49:37 +08:00
developer-wlj
db614180b9
Revert "refactor: 优化临时文件的创建和上传逻辑"
...
This reverts commit 77c0f8f39e .
2025-09-14 17:14:52 +08:00
developer-wlj
77c0f8f39e
refactor: 优化临时文件的创建和上传逻辑
...
- 使用 with 语句自动管理临时文件的创建和关闭,提高代码的可读性和安全性
- 优化了代码结构,减少了嵌套的 try 语句,使代码更加清晰
2025-09-14 16:46:27 +08:00
developer-wlj
3b194d282e
fix: 修复在windows下因临时文件被占用,导致刮削失败
...
- 修改了两个函数中的临时文件创建和删除逻辑
- 使用手动删除代替自动删除,确保临时文件被正确清理
- 添加了异常处理,记录临时文件删除失败的情况
2025-09-14 16:28:24 +08:00
jxxghp
04a4ed1d0e
fix delete_media_file
2025-09-13 14:10:15 +08:00
jxxghp
8481fd38ce
fix #4933
2025-09-13 09:54:28 +08:00
jxxghp
c1bd2d6cf1
fix:优化下载
2025-09-08 09:50:08 +08:00
jxxghp
36a6802439
fix:#4876
2025-09-02 12:45:44 +08:00
jxxghp
ff7fb14087
fix cache_clear
2025-09-02 08:35:48 +08:00
jxxghp
19efa9d4cc
fix #4795
2025-08-27 16:15:45 +08:00
jxxghp
edc432fbd8
fix #4846
2025-08-27 12:45:23 +08:00
jxxghp
da0b3b3de9
fix:日历缓存
2025-08-25 16:46:10 +08:00
jxxghp
6664fb1716
feat:增加插件和日历的自动缓存
2025-08-25 16:37:02 +08:00
jxxghp
069ea22ba2
fix bug
2025-08-24 16:55:37 +08:00
jxxghp
9b843c9ed2
fix:整理记录登记
2025-08-24 12:19:12 +08:00
jxxghp
71a9fe10f4
refactor ProgressHelper
2025-08-24 09:02:55 +08:00
jxxghp
f37540f4e5
fix get_rss timeout
2025-08-22 11:44:16 +08:00
jxxghp
c6c84fe65b
rename
2025-08-21 16:02:50 +08:00
jxxghp
d12c1b9ac4
remove musl-dev
2025-08-21 12:32:53 +08:00
jxxghp
219aa6c574
Merge pull request #4790 from wikrin/delete_media_file
2025-08-21 09:35:07 +08:00
Attente
abca1b481a
refactor(storage): 优化空目录删除逻辑
...
- 添加对资源目录和媒体库目录的保护机制
- 实现递归向上检查并删除空目录
2025-08-21 09:16:15 +08:00
jxxghp
db72fd2ef5
fix
2025-08-21 09:07:28 +08:00
jxxghp
9b78deb802
fix torrent
2025-08-20 23:07:29 +08:00
jxxghp
dadc525d0b
feat:种子下载使用缓存
2025-08-20 22:03:18 +08:00
jxxghp
f07496a4a0
fix cache
2025-08-20 21:11:10 +08:00
jxxghp
b3113e13ec
refactor:新增文件缓存组合
2025-08-20 19:04:07 +08:00
jxxghp
055c8e26f0
refactor:重构缓存系统
2025-08-20 17:35:32 +08:00
jxxghp
69cb07c527
优化缓存机制,支持Redis和本地缓存的切换
2025-08-20 09:16:30 +08:00
jxxghp
89e8a64734
重构Redis缓存机制
2025-08-20 08:51:03 +08:00
jxxghp
aeb297efcf
优化站点激活状态的判断逻辑,简化数据库查询条件
2025-08-19 11:23:09 +08:00
jxxghp
1ab2da74b9
use apipathlib
2025-08-17 09:00:02 +08:00
jxxghp
fdbfae953d
fix #4741 FlareSolverr使用站点设置的超时时间,未设置时默认60秒
...
close #4742
close https://github.com/jxxghp/MoviePilot-Frontend/pull/378
2025-08-12 08:04:29 +08:00
jxxghp
90f74d8d2b
feat:支持FlareSolverr
2025-08-11 21:14:46 +08:00