mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 07:58:01 +09:00
Merge pull request #50 from harjitmoe/master
Fix TypeError when reading playlist files.
This commit is contained in:
commit
589a0cd251
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