Skip to content

Commit 0d54a9c

Browse files
committed
Add findadd command.
1 parent c29a648 commit 0d54a9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/client.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ impl<S: Read + Write> Client<S> {
427427
// Database search {{{
428428
// TODO: count tag needle [...] [group] [grouptag], find type what [...] [window start:end]
429429
// TODO: search type what [...] [window start:end], searchadd type what [...]
430-
// TODO: findadd type what [...], listallinfo [uri], listfiles [uri], lsinfo [uri]
430+
// TODO: listallinfo [uri], listfiles [uri], lsinfo [uri]
431431
// TODO: list type [filtertype] [filterwhat] [...] [group] [grouptype] [...]
432432
// TODO: searchaddpl name type what [...], readcomments
433433

@@ -463,6 +463,12 @@ impl<S: Read + Write> Client<S> {
463463
.and_then(|_| self.read_pairs().map(|p| p.map(|p| p.1)).collect())
464464
}
465465

466+
/// Find all songs in the db that match query and adds them to current playlist.
467+
pub fn findadd(&mut self, query: &Query) -> Result<()> {
468+
self.run_command("findadd", query)
469+
.and_then(|_| self.expect_ok())
470+
}
471+
466472
// }}}
467473

468474
// Output methods {{{

0 commit comments

Comments
 (0)