Fix TypeError when reading playlist files.

This commit is contained in:
HarJIT 2021-03-13 13:03:19 +00:00
parent 410bd863a6
commit 64414b6158

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