Submit video number list

This commit is contained in:
zhbaor 2023-02-23 21:43:58 +08:00
parent 8783a91a65
commit 5d15b3c372
6 changed files with 155 additions and 6 deletions

View file

@ -1,4 +1,4 @@
from bottle import request, response, Bottle
from bottle import request, response, Bottle, HTTPResponse
from manager import Manager
from json import dumps
from pathlib import Path
@ -9,7 +9,8 @@ app = Bottle()
@app.post("/video")
def add_videos():
manager.add_videos_by_number(request.json)
nvlist = request.json["nvlist"].split()
manager.add_videos_by_number(nvlist)
return "OK"