2 releases
0.1.1 | Aug 27, 2024 |
---|---|
0.1.0 | Aug 27, 2024 |
#327 in Audio
101 downloads per month
Used in inori
98KB
2K
SLoC
This is my fork of rust-mpd which I use in my MPD client, inori.
The original program is licensed under either Apache v2 or MIT. I have chosen the MIT license, and you can find the original license/copyright notice here, included with the software.
All my original code is public domain under the Unlicense.
Features I have implemented are not particularly idiomatic or well
written, but they get the my job done. New additions are:
listallinfo
command from an upstream PR by paulchambazfn list_group_2(&mut self, terms: (String, String)) -> Result<Vec<(String, String)>>
which calls the "list" command for two terms with the group keyword, as specified in the protocolfn list_groups(&mut self, terms: Vec<&str>) -> Result<Vec<Vec<String>>>
which also calls the "list" command for an arbitrary number of terms. The output nested vectors contains the grouping structure. So, for example, a call like "title group album" will return
and so on. This is primarily useful to obtain one entry for each object in the library; I use it in inori for the global search feature.[["album1"], ["album1", "title1"], ["album2"], ["album2 title2"]]
- resolved/suppressed all compilation warnings.
With that said, my bar for quality is honestly quite low, I'd rather save anybody else the trouble of having to make their own fork to add a simple convenience feature. Feel free to send me any patches and I'll almost certainly accept them quickly as long as they don't break anything!
It is not possible to implement these features that I need without a fork because the necessary Client api is not public, and the original maintainer has been inactive for some time.
If you'd like to use this fork as a drop-in replacement, you can do that the same way I do it in inori:
[dependencies.mpd]
package = "inori-mpd"
version = "0.1.0"
Dependencies
~435–620KB
~13K SLoC