Commit Graph
40 Commits
Author SHA1 Message Date
jxxghp dd6405389c refactor: route storage module settings through runtime 2026-08-23 03:12:51 +08:00
jxxghp 5128ae9e1e refactor: 推进后端分层架构治理 2026-08-18 00:29:14 +08:00
jxxghp 96118e73e7 refactor(string): split utilities by responsibility 2026-08-15 08:03:55 +08:00
jxxghp 369d7d6448 refactor: reorganize backend module boundaries 2026-08-14 19:53:33 +08:00
jxxghp 7b3444c366 refactor backend module architecture 2026-08-14 15:45:38 +08:00
Aqr-KandAqr-K a2e70b443d fix(monitor,transfer): 修复 FUSE 挂载无响应导致的监控冻死、整理链锁死与漏件 (#6276)
* wip(v3): 移植监控与整理韧性修复到 v3 基线

包含:监控看门狗隔离/挂载探测、整理队列持久化、文件系统子进程代理、
写入原子化。迁移重挂到 v3 链 8a4c7e1d2f90 -> 7f5c1d2e3a4b -> e3d9f4b7c806。
tmdb 相关测试尚未通过,待定位。

* fix(v3): 修正移植引入的 16 项测试失败

- poller.py:合并时我方保留的行仍用旧变量名 merged_snapshot,而 v3 已统一
  改名为 current_snapshot,导致 NameError 被外层 except 吞掉、快照从未保存
- smb.py:采纳 f-string 拆分写法,恢复 Python 3.11 可解析
- dispatcher 测试:历史查重由 _should_skip_by_history 统一承担,mock 点随之调整
- tmdb 缓存测试:补充 v3 新增的 media_source/media_id 字段
- tmdb 重试测试:为 fake 补充 match_multi/async_match_multi

尚余 3 项与 v3 识别流程的连接失败处理有关,待单独判断。

* fix(v3): 测试适配 v3 的 media_source/media_id 重构

v3 将媒体标识从 tmdbid 统一重构为 media_source + media_id,recognize_media
的 tmdbid 参数已被 **kwargs 静默吞掉——传了也不生效,流程会误降级到名称搜索。
tmdb 重试用例改用新参数后恢复正确路径。

同时修正 fake 的 match_multi 语义:真实实现(tmdbapi.match_multi)吞掉所有
异常并返回 None,连接失败与「未找到」在该路径上本就不可区分,fake 需保持一致。

至此移植引入的 19 项失败全部清零。

---------

Co-authored-by: Aqr-K <Aqr-K@users.noreply.github.com>
2026-08-13 08:19:54 +08:00
jxxghp 68f18db374 Handle invalid UTF-8 with replacement decoding 2026-06-21 09:56:34 +08:00
jxxghp a0b3800f6b fix: prevent cloud storage download path traversal 2026-06-05 17:43:06 +08:00
jxxghp 79539760da fix: bound long-lived cache state 2026-05-24 18:03:42 +08:00
笨笨 6f6fcc79f2 fix: serialize rclone folder creation during concurrent transfers 2026-04-20 21:34:35 +08:00
jxxghp 68402aadd7 fix:去除文件操作全局锁 2026-01-21 08:31:51 +08:00
jxxghp 2ce1c3bef8 feat:整理进度登记 2025-08-24 12:04:05 +08:00
jxxghp 5340e3a0a7 fix 2025-07-28 16:55:22 +08:00
jnwan e350122125 Add flag to ignore check folder modtime for rclone snapshot 2025-07-24 21:34:17 -07:00
jxxghp e83fe0aabe fix storage logging 2025-03-25 08:34:36 +08:00
jxxghp 63049f61f7 fix typing 2025-03-24 19:14:04 +08:00
jxxghp d502f33041 fix 115 open api 2025-03-24 12:04:23 +08:00
jxxghp 2b9f7bca51 fix 115 api 2025-03-21 21:01:37 +08:00
jxxghp 3400a9f87a fix #3548 2024-12-17 12:44:37 +08:00
honus 7e4a18b365 fix rclone __get_fileitem err 2024-12-17 00:18:52 +08:00
honus 9ecc8c14d8 fix rclone bug 2024-12-16 23:20:49 +08:00
jxxghp 7f83d56a7e fix alipan 2024-11-24 17:55:08 +08:00
jxxghp 8d737f9e37 fix alipan && rclone get_folder 2024-11-23 21:43:53 +08:00
jxxghp 0a923bced9 fix storage 2024-11-23 12:29:34 +08:00
jxxghp 4f1d3a7572 fix #3180 2024-11-21 12:13:44 +08:00
jxxghp a3172d7503 fix 扫码逻辑与底层模块解耦 2024-11-20 20:17:18 +08:00
jxxghp 8dc9acf071 fix 115 2024-11-17 14:03:03 +08:00
jxxghp f6a2efb256 fix #3116 2024-11-16 09:25:46 +08:00
InfinityPacer ac5b9fd4e5 fix(rclone): specify UTF-8 encoding when save config 2024-11-15 17:42:11 +08:00
jxxghp 42dc539df6 fix #3013 2024-11-15 16:17:51 +08:00
jxxghp f9d62e7451 fix Rclone存储容量检测问题 2024-11-12 10:10:37 +08:00
jxxghp 1c2a194a7d fix rclone && alipan 2024-10-19 12:29:45 +08:00
jxxghp 93e053d06a fix 跨存储整理(115下载除外) 2024-09-25 20:16:31 +08:00
jxxghp 2da95fa4e6 use aligo 2024-09-25 18:44:18 +08:00
jxxghp 7444b3e84b fix storage api 2024-09-21 20:18:40 +08:00
Aqr-K 148e4a95ee fix: cloud disk bug
- 解决前端调用时,没有认证参数或者失效时,后端返回的None,会引发pydantic的报错,从而导致的前端无法获取结果,卡在刷新页面
2024-09-16 22:16:54 +08:00
jxxghp e86bf61579 fix storage api 2024-09-14 14:43:14 +08:00
jxxghp 5d3809b8f5 fix rclone usage 2024-08-16 17:14:20 +08:00
jxxghp af88618fbd fix storage api 2024-08-16 11:59:45 +08:00
jxxghp 8485d4ec30 fix storage api 2024-08-16 11:30:31 +08:00