From 4aa86efdbc736e4ece333d38dd77a037e55b7bca Mon Sep 17 00:00:00 2001 From: Ovler Date: Sat, 15 Jun 2024 15:15:30 +0800 Subject: [PATCH] fix: source_id should be connected as string --- biliarchiver/rest_api/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/biliarchiver/rest_api/main.py b/biliarchiver/rest_api/main.py index 80a1cb0..e4e2ce5 100644 --- a/biliarchiver/rest_api/main.py +++ b/biliarchiver/rest_api/main.py @@ -126,6 +126,8 @@ async def add_from_source(source_type: str, source_id: int): source_id = int(source_id) except ValueError: raise HTTPException(status_code=400, detail="Invalid source id") + + source_id = str(source_id) cmd_mapping = { "user": ["biliarchiver", "get", "--up-videos", source_id],