fix: source_id should be connected as string

This commit is contained in:
Ovler 2024-06-15 15:15:30 +08:00 committed by yzqzss
parent ad22950946
commit 4aa86efdbc

View File

@ -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],