Converting byte strings to strings during pls read

This commit is contained in:
Steffen Schuhmann 2020-07-26 15:11:39 +02:00
parent 410bd863a6
commit ab8a295228

View file

@ -483,7 +483,7 @@ class Playlist(Record):
def populate_pls(self, data):
sorttracks = []
for i in data:
dataarr = i.strip().split("=", 1)
dataarr = i.decode('utf-8').strip().split("=")
if dataarr[0].lower().startswith("file"):
num = int(dataarr[0][4:])
filename = urllib.parse.unquote(dataarr[1]).strip()