mpd search non-mock

This commit is contained in:
Ondrej Zara 2020-03-14 16:15:14 +01:00
parent a57207f80e
commit 0cd8ca8a55
3 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ cyp-library {
.flex-row;
button:first-of-type {
margin-left: 8px;
margin-left: var(--icon-spacing);
}
}
}

File diff suppressed because one or more lines are too long

View file

@ -109,14 +109,14 @@ export async function listTags(tag, filter = {}) {
}
export async function listSongs(filter, window = null) {
let tokens = ["find", ...serializeFilter(filter)];
let tokens = ["find", serializeFilter(filter)];
window && tokens.push("window", window.join(":"));
let lines = await command(tokens.join(" "));
return parser.songList(lines);
}
export async function searchSongs(filter) {
let tokens = ["find", ...serializeFilter(filter, "contains")];
let tokens = ["search", serializeFilter(filter, "contains")];
let lines = await command(tokens.join(" "));
return parser.songList(lines);