thay doi tinh nang chay trong mang noi bo
This commit is contained in:
+2
-2
@@ -69,8 +69,8 @@ async def _scheduler_loop() -> None:
|
||||
async def _startup() -> None:
|
||||
cfg = await store.load()
|
||||
recordings_dir = cfg.recordings_dir
|
||||
if Path(recordings_dir).exists():
|
||||
app.mount("/videos", StaticFiles(directory=recordings_dir), name="videos")
|
||||
Path(recordings_dir).mkdir(parents=True, exist_ok=True)
|
||||
app.mount("/videos", StaticFiles(directory=recordings_dir), name="videos")
|
||||
asyncio.create_task(_scheduler_loop())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user