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:
Anna Schumaker 2019-03-20 10:31:36 -04:00
parent 754a8beadd
commit ae92da8e82
1 changed files with 2 additions and 2 deletions

View File

@ -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()