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.
"""
out = "Now Playing: "
out += self.player.title + "\n"
if self.player.artist != "":
if self.player.title:
out += self.player.title + "\n"
if self.player.artist:
out += "by " + self.player.artist + "\n"
if self.player.album != "":
out += "from the album '" + self.player.album \
+ "'\n"
if self.player.album:
out += "from the album '" + self.player.album + "'\n"
# TODO: add fields for "organization" and "location" for gstreamer-player
# so we can get the station ID stuff

Loading…
Cancel
Save