mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
Converting byte strings to strings during pls read
This commit is contained in:
parent
ab8a295228
commit
26a9913703
1 changed files with 1 additions and 1 deletions
|
|
@ -483,7 +483,7 @@ class Playlist(Record):
|
|||
def populate_pls(self, data):
|
||||
sorttracks = []
|
||||
for i in data:
|
||||
dataarr = i.decode('utf-8').strip().split("=")
|
||||
dataarr = i.decode('utf-8').strip().split("=", 1)
|
||||
if dataarr[0].lower().startswith("file"):
|
||||
num = int(dataarr[0][4:])
|
||||
filename = urllib.parse.unquote(dataarr[1]).strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue