mirror of
https://github.com/saveweb/biliarchiver.git
synced 2024-09-19 11:05:28 -07:00
fix: source_id should be connected as string
This commit is contained in:
parent
ad22950946
commit
4aa86efdbc
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user