Inverted search priority order

This commit is contained in:
Fabio Manganiello 2018-04-12 14:22:24 +02:00
parent b400597a1b
commit abdc5a5ed0

View file

@ -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;
}
}