diff --git a/interface.py b/interface.py index 419fede..6368da4 100644 --- a/interface.py +++ b/interface.py @@ -414,7 +414,7 @@ def library(): pass if not total_count: - abort(404) + abort(204) if request.form['action'] == 'add': items = dicts_to_items(var.bot, var.music_db.query_music(condition)) diff --git a/templates/index.html b/templates/index.html index 9f31a71..3a4d4db 100644 --- a/templates/index.html +++ b/templates/index.html @@ -743,7 +743,7 @@ data: data, statusCode: { 200: processResults, - 404: function(){ + 204: function(){ lib_loading.hide(); lib_empty.show(); page_ul.empty();