rind: Escape text before setting title and subtitle
We're using GLib markup, so we need to escape special characters so they can be drawn properly Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
754a8beadd
commit
ae92da8e82
|
@ -34,8 +34,8 @@ class EmmentalAudio:
|
|||
self.playbin.set_state(Gst.State.NULL)
|
||||
self.playbin.set_property("uri", f"file://{track.path}")
|
||||
self.playbin.set_state(Gst.State.PLAYING if play else Gst.State.PAUSED)
|
||||
Title.set_markup(f"<big>{track['title']}</big>")
|
||||
Subtitle.set_markup(f"<big>by {track['artist']}</big>")
|
||||
Title.set_markup(f"<big>{GLib.markup_escape_text(track['title'])}</big>")
|
||||
Subtitle.set_markup(f"<big>by {GLib.markup_escape_text(track['artist'])}</big>")
|
||||
|
||||
def next(self, *args):
|
||||
track = curds.PlaylistManager.next()
|
||||
|
|
Loading…
Reference in New Issue