post/redirect/get for removing items from playlist
This commit is contained in:
parent
409fea0197
commit
9b4aafcacc
@ -88,10 +88,9 @@ def youtube(env, start_response):
|
|||||||
if fields['action'][0] == 'remove':
|
if fields['action'][0] == 'remove':
|
||||||
playlist_name = path[11:]
|
playlist_name = path[11:]
|
||||||
local_playlist.remove_from_playlist(playlist_name, fields['video_info_list'])
|
local_playlist.remove_from_playlist(playlist_name, fields['video_info_list'])
|
||||||
start_response('200 OK', ())
|
start_response('303 See Other', (('Location', common.URL_ORIGIN + path),) )
|
||||||
return local_playlist.get_playlist_page(playlist_name).encode()
|
return local_playlist.get_playlist_page(playlist_name).encode()
|
||||||
start_response('200 OK', (('Content-type','text/html'),) )
|
|
||||||
return local_playlist.get_playlist_page(path[10:], query_string=query_string).encode()
|
|
||||||
else:
|
else:
|
||||||
start_response('400 Bad Request', ())
|
start_response('400 Bad Request', ())
|
||||||
return b'400 Bad Request'
|
return b'400 Bad Request'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user