Merge pull request #50 from harjitmoe/master

Fix TypeError when reading playlist files.
This commit is contained in:
Nimesh Ghelani 2021-06-04 23:12:26 +01:00 committed by GitHub
commit 589a0cd251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()