2 use mpris::PlayerFinder;
6 use super::LyricsSource;
11 pub fn new() -> Self {
16 impl LyricsSource for Dbus {
18 fn name(&self) -> String {
22 fn current_track(&self) -> Option<Track> {
23 let player = PlayerFinder::new().ok()?
26 let metadata = player.get_metadata().ok()?;
27 let name = metadata.title()?.to_string();
28 let artists = metadata.artists()?;
29 let artist = artists.get(0)?.to_string();
37 fn disable(&self) -> Result<()> {
41 fn enable(&self) -> Result<()> {
45 fn reset(&self) -> Result<()> {