feat: 增加视频清单搜索,并在开发期缓存剧目清单

This commit is contained in:
Nixevol
2026-09-27 04:21:00 +08:00
parent cc930cd1ed
commit f010426f94
7 changed files with 268 additions and 21 deletions
+5 -1
View File
@@ -52,7 +52,11 @@ fn spawn_backend(root: &Path, port: u16) -> Result<Child, String> {
.arg("--port")
.arg(port.to_string())
.env("RAPTD_STATIC", &static_dir)
.env("PYTHONUNBUFFERED", "1");
.env("PYTHONUNBUFFERED", "1")
.env(
"RAPTD_CATALOG_CACHE",
if cfg!(debug_assertions) { "1" } else { "0" },
);
#[cfg(all(windows, not(debug_assertions)))]
{
use std::os::windows::process::CommandExt;