Skip to content

Commit

Permalink
shoutcast: Ignore incorrect utf-8 encoding in recording status
Browse files Browse the repository at this point in the history
It prevents the plugin from crashing when recording titles that
contain special characters, such as ღ♫♥✬❥☽✸❖.

Thanks Stan
https://forums.openpli.org/user/47662-stan/
  • Loading branch information
Hains authored and littlesat committed Nov 29, 2024
1 parent 045c07b commit 8d03e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shoutcast/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def streamripperClosed(self, retval):
self["key_red"].setText(_("Record"))

def streamripperDataAvail(self, data):
sData = data.decode().replace('\n', '')
sData = data.decode('utf-8', 'ignore').replace('\n', '')
self["console"].setText(_("Recording: %s") % sData)

def stopReloadStationListTimer(self):
Expand Down

0 comments on commit 8d03e4e

Please sign in to comment.