def POST(self): data = json.load(StringIO(web.data())) from youtupi.playlist import removeVideo removeVideo(data["id"]) if os.path.isfile(data["id"]): os.remove(data["id"])
def POST(self): data = json.load(StringIO(web.data())) from youtupi.playlist import removeVideo removeVideo(data['id']) if os.path.isfile(data['id']): os.remove(data['id'])
def DELETE(self): data = json.load(StringIO(web.data())) removeVideo(data['id']) web.seeother('/playlist')
def DELETE(self): data = json.load(StringIO(web.data())) removeVideo(data['id']) web.seeother('playlist')