update audio dept. to use built in metadata from gstreamer-player

workspace
Brendan Howell 3 years ago
parent 69ff65ccb3
commit c22026b015

@ -94,12 +94,12 @@ class Audio(Bureau):
Prints the currently playing song or stream on the small printer. Prints the currently playing song or stream on the small printer.
""" """
out = "Now Playing: " out = "Now Playing: "
out += self.player.title + "\n" if self.player.title:
if self.player.artist != "": out += self.player.title + "\n"
if self.player.artist:
out += "by " + self.player.artist + "\n" out += "by " + self.player.artist + "\n"
if self.player.album != "": if self.player.album:
out += "from the album '" + self.player.album \ out += "from the album '" + self.player.album + "'\n"
+ "'\n"
# TODO: add fields for "organization" and "location" for gstreamer-player # TODO: add fields for "organization" and "location" for gstreamer-player
# so we can get the station ID stuff # so we can get the station ID stuff

Loading…
Cancel
Save