Skip to content

Commit

Permalink
Encode NowPlayingFile as latin-1
Browse files Browse the repository at this point in the history
Because B.U.T.T. doesn’t do Unicode.
  • Loading branch information
s0ph0s-2 committed Jun 1, 2018
1 parent 3802397 commit 97db3f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions gelo/plugins/now_playing_file.gelo-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ Module = now_playing_file
[Documentation]
Description = Write a single-line text file with the marker name, for BUTT.
Author = s0ph0s
Version = 2.1.1
Version = 2.1.2
Website = https://github.com/s0ph0s-2/Gelo

2 changes: 1 addition & 1 deletion gelo/plugins/now_playing_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def run(self):
# B.U.T.T. doesn't Do the Right Thing™ when encountering
# Unicode characters.
text = marker.label.replace('—', '-')
f.write(text)
f.write(text.encode('latin-1', 'ignore'))
except queue.Empty:
continue
except mediator.UnsubscribeException:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='gelo',
version='3.0.2',
version='3.0.3',
description='podcast chapter metadata gathering tool for content creators',
url='https://github.com/s0ph0s-2/Gelo',
author='s0ph0s-2',
Expand Down

0 comments on commit 97db3f7

Please sign in to comment.