mpd search non-mock
This commit is contained in:
parent
a57207f80e
commit
0cd8ca8a55
3 changed files with 4 additions and 4 deletions
|
@ -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
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue