✨ Submit video number list
This commit is contained in:
parent
8783a91a65
commit
5d15b3c372
6 changed files with 155 additions and 6 deletions
|
@ -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"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue