Commit Graph
977 Commits
Author SHA1 Message Date
ForgQi 083313257f Improve downloader reliability and add caching
- Add process-level caching for expensive API calls: login tokens (Afreecatv, Douyin), encryption keys (Douyu), room IDs (Douyu, Huya)
- Implement Huya mini-app API option (huya_mobile_api) with WUP protocol support for getCdnTokenInfoEx
- Add cdn_fallback for Huya with health checks and protocol negotiation
- Improve Bilibili stream selection with protocol fallback (hls_fmp4→stream) and qn-based grouping
- Fix Twitch auth token invalidation handling and improve cookie file management
- Refactor YouTube entry selection with proper playlist recursion and date filtering
- Add retry logic for network failures (Douyu betard) and improve error recovery
- Share WBI signer state across Bilibili check_stream calls to respect 2-hour key cache interval
- Always pass --download-archive for YouTube (including live) to prevent post-stream duplicates
- Add field aliases (inke: live_name, kilakila: backPic) and fix Niconico suffix (flv→ts)
2026-07-14 00:32:29 +08:00
ForgQi 18c5bf086e Define AT_HWCAP2 for ppc64le; enable tokio
Set CFLAGS_powerpc64le_unknown_linux_gnu=-DAT_HWCAP2=26 in CI to work around aws-lc-sys (via rustls) calling getauxval(AT_HWCAP2) on manylinux2014 where glibc 2.17 headers lack AT_HWCAP2; glibc still provides getauxval so the value is safe and only used for ppc64le cc invocations. Also enable the tokio "io-std" feature for the biliup-cli crate to opt into the io-std I/O implementation.
2026-07-11 03:53:51 +08:00
ForgQi ddc29f63b4 Update deps & fix server upload/download
Bump dependencies (Cargo.toml + Cargo.lock) to newer crate versions and adapt code to API changes. Refactor server-side upload/download logic, the upload_streamer model, and related API endpoints to improve streaming handling, buffer/error propagation and compatibility with updated crates (e.g. tokio-tungstenite/futures/etc.). These changes align the codebase with the upgraded dependency set and fix streaming/endpoint issues introduced by those upgrades.
2026-07-11 01:57:48 +08:00
ForgQi 58dc75b6ca Build free-threaded wheels for Python 3.14t (#1648)
maturin 1.14 dropped support for free-threaded Python 3.13
("Free-threaded Python interpreter is only supported on 3.14 and
later"), which broke the linux/musllinux/macos free-threaded wheel
steps since maturin-action always uses the latest maturin. Switch
the free-threaded builds from python3.13t to python3.14t, matching
what maturin generate-ci now emits.
2026-07-10 17:08:08 +00:00
Micuks 33649fb568 fix server submit_api web routing (#1645) 2026-07-10 15:11:39 +00:00
Aluneu 165d4eac68 Update CHANGELOG.md (#1646)
更新发行版信息
2026-07-05 11:08:39 +00:00
XuanRan_Nyan 08b96b73f8 feat(douyu): build huos url for forced hs (#1644) 2026-06-26 11:59:42 +00:00
dplei 0fe20687a3 fix(upload): fall back to live URL when copyright_source is blank (#1640)
When the upload template's reprint source (copyright_source) is left
empty, the web form submits an empty string rather than null, so it is
stored as Some(""). build_studio used `unwrap_or_else`, which only fires
on None, so the submitted source became an empty string instead of the
live room URL — contradicting the UI hint
"如不填写转载来源默认为直播间地址".

Treat None and whitespace-only values as "unset" and fall back to the
live room URL. Extract the resolution into a pure `resolve_source`
helper with unit tests covering none / empty / whitespace / real value.
2026-06-11 02:54:59 +00:00
ForgQi b2ab974431 Update README with new features and cleanup
Reorganize features and remove command line tool section.
2026-06-08 01:32:00 +08:00
ForgQi b5ddff0564 Refactor Python package and simplify entry
Remove legacy engine and many plugin modules, refactor upload plugins to standalone classes, and simplify package entry points. __init__.py now provides a safe __version__ fallback; __main__.py directly invokes stream_gears.main_loop. BiliWeb/BiliWebAsync plugins were adapted to use a FileInfo NamedTuple and no longer depend on engine.UploadBase/Plugin decorator. Documentation updated (README expanded with new commands and CLI/SKILL integration) and a new SKILL.md added. Workspace version bumped to 1.2.1 in Cargo.toml (lock updated accordingly).
2026-06-06 03:22:54 +08:00
ForgQi 431d1f61ab Support optional segment limits and danmaku files
Make file_size and segment_time optional and normalize/validate their values so segmentation can be disabled. Frontend: send nulls for empty fields and allow empty segment_time via validation; add showClear to inputs. Downloader: extend SegmentInfo with optional danmaku_file_path and propagate it from various downloaders; DanmakuClient::rolling now returns a bool to signal whether a danmaku file was produced. Uploader: add segment_paths helper to include danmaku files in upload/postprocessing, and preserve processed paths; add unit tests. HookStep: stream child process stdout/stderr as raw bytes to terminal and append to a log file (tee), and simplify run/move logic to use explicit path lists. Cargo.toml: bump reqwest to 0.13.4. Tests and minor adjustments added throughout to support these changes.
2026-06-04 01:19:27 +08:00
ForgQi a529bbcbd2 Update lib.rs 2026-06-01 02:20:59 +08:00
ForgQi 3655679a58 Refactor live downloader architecture
Migrate the server-side live downloading to the new biliup::downloader::live API and simplify the actor model. Key changes:

- Introduce a new server/core/live module that builds LiveRequest/LiveOptions/LiveCredentials, maps runtimes, and creates danmaku clients.
- Replace legacy plugin/DownloadBase actor flow with LivePlugin-based workflows and a start_download_workflow entrypoint; monitor now acquires a Semaphore permit before starting a download to enforce concurrency.
- Remove the old plugin module and per-platform plugin plumbing; many platform implementations were moved/renamed under crates/biliup/src/downloader/live.
- Adjust DownloadManager, Monitor, and common download/upload code to use LivePlugin, LiveStream and related types; pass uploader channel and download slot semaphore into Monitor.
- Add download_stream helper to support direct FLV/HLS downloads via StatelessClient, and extend Streamlink downloader to support Niconico credentials/options.
- Update usage of context/streamer info and danmaku initialization to the new LiveStream-based model.
- Bump workspace version to 1.2.0 (Cargo.toml) and related package versions.

This refactor centralizes live logic on the shared biliup downloader live API, simplifies concurrency control, and removes the previous actor-based plugin indirection.
2026-06-01 01:50:00 +08:00
ForgQi 219334f936 fix ci 2026-05-30 02:24:52 +08:00
ForgQi df898c5d35 Update Dockerfile 2026-05-30 01:37:52 +08:00
ForgQi bde581fa07 Update Dockerfile 2026-05-30 01:27:28 +08:00
ForgQi c395b31148 Replace Python Danmaku with Rust implementation
Remove the legacy Python biliup/Danmaku package and related douyin utilities, and adjust PyInstaller spec to stop bundling those resources. Introduce and expand Rust-based danmaku and plugin implementations (crates/danmaku, crates/biliup-cli server/core/plugin/*, and stream-gears changes) and update various server/downloader modules to integrate them. Also add a TOML dependency to Cargo.toml to support the new Rust changes.
2026-05-30 01:17:18 +08:00
XenoAmess 62bd16de8e chore(doc): update CHANGELOG.md and other docs (#1631) 2026-05-28 02:02:30 +00:00
方程 697a525b55 Add comment listing and reply commands (#1628) 2026-05-25 06:38:50 +00:00
Micuks b2b92e6fee feat(hook): 启用 segment_processor 阶段,新增 remux:mp4 内建钩子 (#1626)
* feat(hook): built-in remux:mp4 hook + activate segment_processor stage

B站 transcoder rejects raw .ts uploads with PTS jumps ("您的视频未能成功
转码 ... 该视频内部存在时间戳跳变"), which is common on HLS reconnects
mid-segment. The fix is to feed it an mp4 with monotonic PTS — a plain
ffmpeg copy-remux is enough.

Add a built-in `HookStep::Remux { remux: String }` variant that runs
`ffmpeg -fflags +genpts+igndts -c copy -bsf:a aac_adtstoasc
-movflags +faststart -avoid_negative_ts make_zero` on .ts/.m2ts inputs.
Lossless and idempotent (reuses existing .mp4 sibling). Currently
target="mp4" only.

To make this useful, segment_processor (defined in config but never
previously invoked) is now executed in pipeline_upload_videos BEFORE
each upload_single_file. That's the right stage for ts→mp4 — must
run before pre_upload, not after.

Path-mutating processor pipeline:
- new execute_paths(&mut Vec<PathBuf>) API on HookStep
- new process_video_paths helper
- Remux replaces .ts entries with the new .mp4 entries so downstream
  stages (upload, postprocessor) see the right paths.
The legacy execute(&[&Path]) path stays for postprocessor-style steps
that don't mutate the working set.

Config form:

  segment_processor:
    - {remux: "mp4"}

Tests cover YAML/JSON deserialization of all 4 HookStep variants
and Remux skipping non-.ts inputs.

* fix(upload): 单段 segment_processor / upload 失败不再拖死整批

之前 pipeline_upload_videos 里两个 ? 把单段失败直接抛到
process_with_upload,让后续 submit + execute_postprocessor(含 rm)
全部跳过。在磁盘紧的场景下,ffmpeg remux 写 mp4 header 时遇到
"No space left on device" → segment_processor Err → 整个直播会话已
成功上传的段也不会触发本地 rm → 文件堆积 → 磁盘更紧 → 下一段又失败,
正反馈把磁盘吃完。

把两处 ? 改成 log + continue:
- segment_processor 失败:跳过当前段,下个事件继续
- upload_single_file 失败:跳过,已上传的段照常进入 uploaded.{videos,paths}

直播会话结束(channel close)时,submit_to_bilibili 仍然能用收集到
的 videos 提交,execute_postprocessor 仍能 rm 已成功的本地文件。

修复对应残留 1.6 TB 历史文件的根因(35 次/5 天 "Process segment
event failed: ffmpeg remux failed ... No space left on device")。

* test(hook): remux 在 ffmpeg 失败时返回 Err(供 pipeline 容错前置条件)

复现 pipeline_upload_videos 容错路径的触发条件:segment_processor
(Remux step) 在 ffmpeg 退非 0 时返回 Err。生产事故的具体表现就是磁盘
满让 ffmpeg 写 mp4 header 失败,调用方必须能从该 Err 优雅恢复
(log + continue),否则整批已上传的段都拿不到 postprocessor 的 rm。

完整 pipeline_upload_videos 的端到端测试要 mock UploadContext
(BiliBili client + 登录态),这是后续重构 seam 的方向。
2026-05-21 02:15:23 +00:00
XuanRan_Nyan a24d46aae7 refactor: Implementing the Danmaku client in Rust (#1570)
* refactor: Implementing the Danmaku client in Rust

* test
2026-05-18 04:16:23 +00:00
Micuks e70679dbd7 fix(server): 上传失败后重建 segment 通道,避免后续段被静默丢弃 (#1623)
`SegmentEventProcessor` 第一次为某个 streamer 处理事件时会创建一条
`async_channel::bounded(32)` 把段送给 `UActor`,并把 `tx` 缓存到
`self.channel`。一旦后续 `process_with_upload` 因为 `upload_single_file`
失败而 `?` 抛错,`UActor` 在 `handle_message` 走完 `Err` 分支就把 `rx`
drop 掉,但 `processor` 这边的 `tx` 仍然挂着。

之后只要 `execute()` 还在重试循环里没退出(streamer 在播 + 下载继续),
新段都会落到 `Some(tx)` 分支:`tx.force_send` 对已关闭通道返回 Err →
`Failed to send to buffer` → 段被静默丢弃。直到下载侧 `max_retries` 用
完、`processor` 才被 drop 重建。

实测:单台机器 24h 内出现 64 次 `Failed to send to buffer`,集中在两位
upload 失败过的 streamer 上,每 30min(segment_time)和每次 HLS
`#EXT-X-DISCONTINUITY` 各丢一段。

修复:进入 `match` 之前先用 `Sender::is_closed()` 探测,发现挂掉的 tx
就把 `self.channel` 置 None,复用下面的「首次创建」分支重新发 rx 给
UActor,恢复管道。
2026-05-09 04:03:50 +00:00
XuanRan_Nyan 28b0bd7105 fix(Huya): WEB_ROOM_DATA_REGEX 正则错误匹配 html 转义 (#1606) 2026-03-09 06:13:25 +00:00
gwy15 57a7741302 feat: upload_by_config 支持通过 Web 提交视频配置 (#1605) 2026-03-06 15:24:30 +00:00
XuanRan_Nyan 826fcede27 chore(Douyu): 适配新版本斗鱼 (#1603) 2026-03-03 15:41:55 +00:00
ForgQi c2a52973a7 Refactor hook command execution; bump version
Unify and simplify how hook Run steps execute external commands: execute_command now accepts raw stdin bytes (src: &[u8]) and runs the full command string via the platform shell (cmd /C or sh -c), writing src to the child's stdin, streaming stdout/stderr lines to logs, and checking exit status. execute_with for the Run case now builds a newline-separated paths string (when called with file paths) and delegates to execute_command. Removed manual arg parsing and duplicated process-handling logic. Also bumped workspace/package version to 1.1.29 (Cargo.toml) and updated lockfile accordingly.
2026-03-01 21:14:50 +08:00
sora3 d666dc7bd8 New Configuration File Parameters (#1600)
* Update config.toml

* Update config.yaml
2026-02-23 10:27:07 +00:00
112292454 fa0075aa8c feat: 添加合集(SEASON)管理功能 (#1598)
实现 B站新版合集(SEASON 类型)的增删改查接口:
- list_seasons: 列出用户的所有合集
- get_season_section: 获取合集内视频列表
- get_video_info: 获取视频信息(添加合集的前置步骤)
- add_to_season: 将视频添加到合集
- remove_from_season: 从合集移除视频
- sort_season_episodes: 合集内视频排序

API 格式通过逆向创作中心前端 JS 和浏览器 F12 抓包验证,
所有接口均在真实环境测试通过。
2026-02-19 10:00:57 +00:00
zhangaoyun 04d017416b feat: 命令行支持通过 Web 接口投稿 (#1580) 2025-12-27 16:45:48 +00:00
lovegaoshi 5096d60010 fix: filename extraction using os.path.basename (#1579) 2025-12-22 14:26:21 +00:00
XuanRan_Nyan caf106c3f8 Fix(Huya): refactor anticode generation using getCdnTokenInfoEx API (#1575)
* Fix(Huya): refactor anticode generation using getCdnTokenInfoEx API

* chore: cleanup

* chore: get random sHuYaUA

* chore: 代码复用
2025-12-21 13:03:52 +00:00
ForgQi 218b8bd127 Refactor code for conciseness and clarity
Simplified conditional logic using Rust's let-else syntax, removed unused imports, and improved code readability in extractor.rs, lib.rs, uploader/line.rs, and stream-gears/server.rs. These changes reduce code complexity and improve maintainability.
2025-12-15 00:43:24 +08:00
ForgQi b57dc29e96 Add cover downloader and update dependencies
Introduced a new cover_downloader module in the downloader core. Updated several dependencies in Cargo.toml and Cargo.lock, including major upgrades to image processing, HTTP, and async libraries. Adjusted related code in util, download, plugin, and uploader modules to support new features and dependency changes.
2025-12-15 00:41:34 +08:00
Dzming Li 175be7625e feat: 断点续传、标题自动截断及限流重试优化 (#1558)
* feat: 添加断点续传功能

- 实现自动保存上传进度到临时文件
- 支持上传中断后自动恢复并跳过已上传文件
- 为 Video 结构体添加 Clone trait
- 添加 .envrc 用于 direnv 自动加载 Nix 环境
- 更新 flake.lock 依赖

* fix: Auto-truncate video titles exceeding 80 characters

B站API限制分P视频标题不能超过80个字符。当文件名过长时,上传会在提交阶段失败并报错"第(N)个视频的标题过长,已经超过80个字符"。

此次修改在所有上传线路(Upos/Kodo/Cos)中添加自动截断逻辑:
- 添加 Video::truncate_title() 辅助函数,按字符(非字节)截断
- 文件名超过80字符时,自动设置title字段为截断版本(77字符+"...")
- 文件名不超过80字符时,title保持None,使用完整文件名

影响范围:
- crates/biliup/src/uploader/bilibili.rs - 新增truncate_title方法
- crates/biliup/src/uploader/line/upos.rs - Upos线路应用截断
- crates/biliup/src/uploader/line/kodo.rs - Kodo线路应用截断
- crates/biliup/src/uploader/line/cos.rs - Cos线路应用截断

* feat: Auto-retry on upload rate limit (code 601)

当遇到B站限流错误(code: 601, "您上传视频过快")时,自动等待后重试,最多重试5次,等待时间递增。

- 在 pre_upload 中添加重试循环
- 解析错误响应JSON,检测 code: 601
- 递增等待时间:第1次等待1分钟,第2次2分钟,第3次3分钟,第4次4分钟
- 最多重试5次(从原来的3次增加)
- 记录警告日志,显示重试进度和等待时间
- 配合断点续传功能,提高批量上传成功率

* refactor: 将重试逻辑从库层移至 CLI 层

主要变更:
- 新增 RateLimit 错误类型以区分限流错误(code: 601)
- 移除 line.rs 中 pre_upload() 的重试循环,遇到 601 错误直接返回
- 在 CLI 层 (uploader.rs) 实现重试逻辑

* fix: 使用跨平台路径获取断点续传文件位置

- 添加 dirs 依赖
- 使用 dirs::data_local_dir() 获取平台相关的数据目录
- Windows 下使用 %LOCALAPPDATA%,避免 /tmp 路径不存在导致的 panic
- 如果无法获取数据目录,回退到 std::env::temp_dir()

* refactor: 使用通用 retry 工具函数重构重试逻辑

主要变更:
- 改造 lib.rs 中的 retry 函数,新增 retry_with_config 支持:
  - 自定义最大重试次数
  - 条件重试(可指定只在特定错误时重试)
  - 保留原有的指数退避和抖动策略
- 在 CLI 层使用 retry_with_config 替换手写的重试循环
- 代码从 30+ 行简化为 15 行
- 更新 dirs 依赖从 5.0 到 6.0

* feat: 添加账号级上传互斥锁机制

为防止多个进程同时使用同一账号上传触发限流,实现账号级互斥锁:

- 新增 upload_lock.rs 模块:
  - 基于文件锁实现跨进程互斥
  - 使用账号 mid 作为锁标识符
  - 自动清理超过30分钟的僵尸锁
  - Drop 时自动释放锁

- 集成到上传流程(uploader.rs):
  - 在上传前检查是否有其他进程正在等待限流恢复
  - 检测到限流错误时尝试获取锁
  - 如果无法获取锁(其他进程已持有),本进程立即退出
  - 使用 Arc<Mutex<>> 在闭包间共享锁状态

工作流程:
1. 进程1 上传时遇到限流 (Rate Limit)
2. 进程1 获取锁并进入重试等待
3. 进程2 启动并检测到锁已被占用
4. 进程2 立即退出,避免继续触发限流
5. 进程1 重试成功后释放锁
2025-12-06 16:12:44 +00:00
XuanRan_Nyan f0bc3536ad fix(Douyu): extract stream_id from HLS stream (#1560) 2025-12-06 16:11:54 +00:00
ForgQi 08c8370c49 Refactor context and downloader logic for modularity
This commit refactors the context handling in the server, introducing PluginContext and improving separation between plugin and runtime contexts. It updates downloader and uploader logic to use the new context structure, streamlines file suffix handling, and removes redundant fields and code. The changes enhance code maintainability, modularity, and clarity, especially around download/upload workflows and plugin integration.
2025-12-05 09:09:31 +08:00
ForgQi 4fa4b90a37 Update README.md 2025-12-01 03:04:56 +08:00
ForgQi 9837d39d24 Update README.md 2025-12-01 03:00:35 +08:00
ForgQi eefbacd89f Update README.md 2025-12-01 02:53:37 +08:00
ForgQi c172efb6cd Add dynamic log level configuration support
Introduces a new `loggers_level` field in the server config to allow dynamic adjustment of log levels via the API and UI. Updates the developer UI to reflect the new log level controls and ensures the backend applies changes to the logging filter at runtime. Also bumps the version to 1.1.27.
2025-12-01 02:18:20 +08:00
ForgQi 07da196a9d Add frontend build step to release workflow
Updated the GitHub Actions release workflow to include Node.js setup and frontend build steps. Also updated the README to clarify the Windows release download link and removed extra blank lines in the disclaimer section.
2025-11-29 23:37:33 +08:00
ForgQi 9e9c9617d4 Refactor plugin config handling and add release workflow
Removed biliup/config.py and refactored all plugin and downloader classes to accept a config parameter, passing configuration explicitly instead of relying on a global import. Updated Rust backend to pass config objects to Python plugins and added a OnceConfig Python class for config access. Introduced a GitHub Actions release workflow. Updated version to 1.1.26 and added a disclaimer to the README. Minor bug fixes and improvements in Rust uploader and config handling.
2025-11-29 23:24:53 +08:00
sora3 2743cac6e2 fix(douyu): force use of constructed URLs for hs-h5 (#1549)
* Update douyu.py

* Update config.yaml
2025-11-28 10:07:17 +00:00
Dzming Li 37abf9222e fix: 修复 shellexpand::tilde 类型错误并优化 Nix 构建 (#1552)
1. 修复 shellexpand::tilde 类型处理
   - shellexpand::tilde() 返回 Cow<'_, str> 而不是 Result
   - 移除了错误的 Result 模式匹配,直接使用返回值

2. 优化 Nix flake 配置
   - 将耗时的 buildNpmPackage 替换为轻量级占位符,跳过前端构建
   - 禁用测试以避免 server 模块测试依赖前端的问题
   - 减少构建时间和网络依赖
   - 命令行用户可通过 biliup login 的多种方式登录
2025-11-28 06:18:49 +00:00
Dzming Li 4bbc909854 feat: 添加 biliup-cli的Nix flake 支持和路径处理改进等 (#1550)
* fix: 修复空视频路径导致的 panic

在 upload 和 append 命令中添加空视频路径检查,避免 video_path[0] 访问时出现 index out of bounds panic

* feat: 添加 Nix flake 支持

- 在 biliup-cli 中添加 flake.nix 配置文件,支持可复现的构建环境
- 使用 crane 构建系统打包 biliup-cli
- 包含开发环境配置
- 添加 mainProgram 元数据

* feat: 改进配置文件格式错误提示

- 添加详细的错误位置信息(行号和列号)
- 提供友好的错误消息和修复提示
- 优化文件打开失败的错误提示

* feat: 为 Studio 结构体字段添加默认值支持

- 为大部分字符串字段添加 serde(default) 支持
- 为 copyright 添加默认值 1(自制)
- tid 和 title 保持为必填字段
- 用户可在配置文件中省略非必填字段

* feat: 添加对波浪号(~)路径的支持

- 添加 shellexpand 依赖用于路径扩展
- 实现 expand_path 函数处理 ~ 路径
- 在所有路径参数(user_cookie, video_path, config, cover)中应用路径扩展
- 用户现在可以使用 ~/path/to/file 格式的路径
2025-11-28 03:04:14 +00:00
ForgQi 55370dd87a Add dynamic log level reload support to server
Introduces tracing_subscriber::reload to enable dynamic log level changes at runtime. Updates the main server initialization and ServiceRegister to accept and store a log handle. Refactors related code to support this feature and removes disabled state from developer UI log level selectors.
2025-11-27 03:41:09 +08:00
ForgQi 3698bcf28a Add struct-patch support and improve config handling
Introduces the struct-patch crate for partial config updates and applies it to configuration models. Refactors config access patterns, adds PartialEq to several types, and updates LiveStreamer to use ConfigPatch for override_cfg. Also updates the CI workflow to use macos-15-intel, improves download task cancellation logic, and upgrades @douyinfe/semi-ui and related dependencies in the frontend.
2025-11-20 03:26:40 +08:00
ForgQi 4fdd0f81c1 Add Bilibili anonymous origin option and improve hook step execution
Introduces a new 'bili_anonymous_origin' option to the config for Bilibili original quality without login. Refactors hook step command execution to use platform-specific shells, capture and log stdout/stderr in real time, and improves process handling. Also updates workspace version to 1.1.23 and makes minor code cleanups.
2025-11-19 02:28:49 +08:00
ForgQi 7763a4cf3a Refactor download workflow and add is_only_self support
Refactored the download workflow to improve danmaku client handling, status transitions, and resource cleanup. Enhanced logging for better traceability. Added support for the 'is_only_self' field in upload streamer models and the Studio struct, ensuring correct type usage and propagation through the upload pipeline. Updated pythonize dependency to version 0.27.0 and improved queue management logic in the monitor.
2025-11-18 03:28:04 +08:00
ForgQi 5de3dcaa6d Refactor monitor and download manager for improved cleanup
Refactored the monitor system by merging RoomsHandle into Monitor, centralizing plugin and worker management, and improving monitor task spawning. Updated DownloadManager to use the new Monitor structure, added a cleanup method for graceful shutdown, and ensured worker statuses are reset on exit. Adjusted related modules and API endpoints to accommodate these changes, and improved code clarity and error handling throughout.
2025-11-17 03:18:01 +08:00