File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -198,11 +198,16 @@ impl<S: Read + Write> Client<S> {
198
198
self . run_command ( "playlistinfo" , ( ) ) . and_then ( |_| self . read_structs ( "file" ) )
199
199
}
200
200
201
- /// lists all songs in the database
201
+ /// Lists all songs in the database
202
202
pub fn listall ( & mut self ) -> Result < Vec < Song > > {
203
203
self . run_command ( "listall" , ( ) ) . and_then ( |_| self . read_structs ( "file" ) )
204
204
}
205
205
206
+ /// Lists all songs in the database with metadata
207
+ pub fn listallinfo ( & mut self ) -> Result < Vec < Song > > {
208
+ self . run_command ( "listallinfo" , ( ) ) . and_then ( |_| self . read_structs ( "file" ) )
209
+ }
210
+
206
211
/// Get current playing song
207
212
pub fn currentsong ( & mut self ) -> Result < Option < Song > > {
208
213
self . run_command ( "currentsong" , ( ) )
@@ -379,7 +384,7 @@ impl<S: Read + Write> Client<S> {
379
384
// Database search {{{
380
385
// TODO: count tag needle [...] [group] [grouptag], find type what [...] [window start:end]
381
386
// TODO: search type what [...] [window start:end], searchadd type what [...]
382
- // TODO: listallinfo [uri], listfiles [uri]
387
+ // TODO: listfiles [uri]
383
388
// TODO: list type [filtertype] [filterwhat] [...] [group] [grouptype] [...]
384
389
// TODO: searchaddpl name type what [...]
385
390
You can’t perform that action at this time.
0 commit comments