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
+1 -1
View File
@@ -18,7 +18,7 @@ async def load_catalog(body: SessionBody):
async def generate():
try:
async for event in catalog.stream(token, raw_device):
async for event in catalog.stream(token, raw_device, body.refresh):
yield json.dumps(event, ensure_ascii=False) + "\n"
except Exception as exc:
message = str(exc) or "获取清单失败"