mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
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]
|
text = os.path.splitext(os.path.basename(filename))[0]
|
||||||
else:
|
else:
|
||||||
# Read the playlist file
|
# Read the playlist file
|
||||||
with open(filename, 'rb') as f:
|
with open(filename, 'r', errors="replace") as f:
|
||||||
data = f.readlines()
|
data = f.readlines()
|
||||||
|
|
||||||
extension = os.path.splitext(filename)[1].lower()
|
extension = os.path.splitext(filename)[1].lower()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue