forked from upstream/IPod-Shuffle-4g
Fix TypeError when reading playlist files.
This commit is contained in:
parent
410bd863a6
commit
64414b6158
1 changed files with 1 additions and 1 deletions
|
|
@ -534,7 +534,7 @@ class Playlist(Record):
|
|||
text = os.path.splitext(os.path.basename(filename))[0]
|
||||
else:
|
||||
# Read the playlist file
|
||||
with open(filename, 'rb') as f:
|
||||
with open(filename, 'r', errors="replace") as f:
|
||||
data = f.readlines()
|
||||
|
||||
extension = os.path.splitext(filename)[1].lower()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue