]> git.0d.be Git - botaradio.git/commitdiff
fix: typo in web interface
authorTerry Geng <gengyanda@gmail.com>
Sun, 8 Mar 2020 12:11:53 +0000 (20:11 +0800)
committerTerry Geng <gengyanda@gmail.com>
Sun, 8 Mar 2020 12:11:53 +0000 (20:11 +0800)
interface.py

index 15ae1ca630f3dc03630d735b9bd8dc0d10a9aabe..9870976aa978816147d07cabf02322dce8928579 100644 (file)
@@ -238,7 +238,7 @@ def post():
 
 
         elif 'add_url' in request.form:
-            music_wrapper = get_item_wrapper(var.bot, type='url', url=request.form['url'], user=user)
+            music_wrapper = get_item_wrapper(var.bot, type='url', url=request.form['add_url'], user=user)
             var.playlist.append(music_wrapper)
 
             log.info("web: add to playlist: " + music_wrapper.format_debug_string())