diff --git a/screenless/bureau/audio/audio.py b/screenless/bureau/audio/audio.py index a2308d3..7f22f54 100644 --- a/screenless/bureau/audio/audio.py +++ b/screenless/bureau/audio/audio.py @@ -75,14 +75,13 @@ class Audio(Bureau): """ Prints the currently playing song or stream on the small printer. """ - #out = subprocess.check_output(["mocp", "-i"]).decode("utf-8") - # TODO: sort out how to do this with + media = self.player.get_media_player().get_media() out = "Now Playing: " - out += self.player.get_media().get_meta(vlc.Meta.Title) + "\n" - nowplaying = self.player.get_media().get_meta(vlc.Meta.NowPlaying) + out += media.get_meta(vlc.Meta.Title) + "\n" + nowplaying = media.get_meta(vlc.Meta.NowPlaying) if nowplaying == "": - out += "by " + self.player.get_media().get_meta(vlc.Meta.Artist) + "\n" - out += "from the album '" + self.player.get_media().get_meta(vlc.Meta.Album) \ + out += "by " + media.get_meta(vlc.Meta.Artist) + "\n" + out += "from the album '" + media.get_meta(vlc.Meta.Album) \ + "'\n" else: out += nowplaying + "\n"