beautified, bugs fixed

This commit is contained in:
Terry Geng
2020-02-06 10:11:48 +08:00
parent 4e905c1c56
commit 9f7a9287a2
4 changed files with 38 additions and 28 deletions

View File

@ -145,7 +145,7 @@ def post():
if os.path.isfile(path):
item = {'type': 'file',
'path' : request.form['add_file_bottom'],
'title' : 'Unknown',
'title' : '',
'user' : 'Web'}
var.playlist.append(var.botamusique.get_music_tag_info(item, path))
logging.info('web: add to playlist(bottom): ' + item['path'])
@ -155,7 +155,7 @@ def post():
if os.path.isfile(path):
item = {'type': 'file',
'path' : request.form['add_file_next'],
'title' : 'Unknown',
'title' : '',
'user' : 'Web'}
var.playlist.insert(
var.playlist.current_index + 1,