From abdc5a5ed02b7acc391c5baa09577961c032e194 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 12 Apr 2018 14:22:24 +0200 Subject: [PATCH] Inverted search priority order --- platypush/backend/http/static/js/music.mpd.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platypush/backend/http/static/js/music.mpd.js b/platypush/backend/http/static/js/music.mpd.js index 4052b6479f..f2c4259610 100644 --- a/platypush/backend/http/static/js/music.mpd.js +++ b/platypush/backend/http/static/js/music.mpd.js @@ -667,13 +667,13 @@ $(document).ready(function() { searchFilters.any = searchData.any; } else { - if ('albumartist' in searchData) { + if ('title' in searchData) { args = { - type: 'albumartist', - filter: searchData.albumartist + type: 'title', + filter: searchData.title }; - searchFilters.albumartist = searchData.albumartist; + searchFilters.title = searchData.title; } if ('album' in searchData) { @@ -685,13 +685,13 @@ $(document).ready(function() { searchFilters.album = searchData.album; } - if ('title' in searchData) { + if ('albumartist' in searchData) { args = { - type: 'title', - filter: searchData.title + type: 'albumartist', + filter: searchData.albumartist }; - searchFilters.title = searchData.title; + searchFilters.albumartist = searchData.albumartist; } }