Skip to content

Commit

Permalink
Unescape track strings when not using template
Browse files Browse the repository at this point in the history
  • Loading branch information
radusuciu committed Sep 9, 2020
1 parent 56ccc51 commit d264733
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions traktor_nowplaying/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from collections import deque
import functools
import http.server
import html
import socketserver
import pathlib
import types
Expand Down Expand Up @@ -92,10 +93,10 @@ def update(self, data):
self._to_file()

def _get_track_string(self, info):
return self.output_format.render(
return html.unescape(self.output_format.render(
artist=info.get('artist', ''),
title=info.get('title', '')
)
))

def _to_stdout(self):
track_string = self._get_track_string(self.tracks[-1])
Expand Down
2 changes: 1 addition & 1 deletion traktor_nowplaying/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.3.2'
__version__ = '0.3.3'

0 comments on commit d264733

Please sign in to comment.