Skip to content

Commit

Permalink
shoutcast: Use ISO 8859-1 format for station playlist
Browse files Browse the repository at this point in the history
It fixes ['utf-8' codec can't decode byte 0x** in position ***: invalid start byte], that comes
up when selecting certain stations, e.g. some from genre Kids. Station playlists are in fact not coded in UTF-8.

Thanks Stan
https://forums.openpli.org/user/47662-stan/
  • Loading branch information
Hains authored and littlesat committed Nov 30, 2024
1 parent 8d03e4e commit 34e65a0
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 @@ -658,7 +658,7 @@ def stopPlaying(self):
def callbackPLS(self, result):
self["headertext"].setText(self.headerTextString)
found = False
parts = str.split(result.decode(), "\n")
parts = str.split(result.decode('ISO 8859-1'), "\n")
for lines in parts:
if lines.find("File1=") != -1:
line = str.split(lines, "File1=")
Expand Down

0 comments on commit 34e65a0

Please sign in to comment.