forked from platypush/platypush
Inverted search priority order
This commit is contained in:
parent
b400597a1b
commit
abdc5a5ed0
1 changed files with 8 additions and 8 deletions
|
@ -667,13 +667,13 @@ $(document).ready(function() {
|
||||||
|
|
||||||
searchFilters.any = searchData.any;
|
searchFilters.any = searchData.any;
|
||||||
} else {
|
} else {
|
||||||
if ('albumartist' in searchData) {
|
if ('title' in searchData) {
|
||||||
args = {
|
args = {
|
||||||
type: 'albumartist',
|
type: 'title',
|
||||||
filter: searchData.albumartist
|
filter: searchData.title
|
||||||
};
|
};
|
||||||
|
|
||||||
searchFilters.albumartist = searchData.albumartist;
|
searchFilters.title = searchData.title;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('album' in searchData) {
|
if ('album' in searchData) {
|
||||||
|
@ -685,13 +685,13 @@ $(document).ready(function() {
|
||||||
searchFilters.album = searchData.album;
|
searchFilters.album = searchData.album;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('title' in searchData) {
|
if ('albumartist' in searchData) {
|
||||||
args = {
|
args = {
|
||||||
type: 'title',
|
type: 'albumartist',
|
||||||
filter: searchData.title
|
filter: searchData.albumartist
|
||||||
};
|
};
|
||||||
|
|
||||||
searchFilters.title = searchData.title;
|
searchFilters.albumartist = searchData.albumartist;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue