Always open downloaded songs as utf-8

This commit is contained in:
Tomas Groth 2024-03-06 13:08:02 +00:00
parent 0d3acc2e67
commit cb490b9e59
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class SongSelectForm(QtWidgets.QDialog, Ui_SongSelectDialog, RegistryProperties)
self.song_progress_bar.setValue(2)
song_filename = self.current_download_item.downloadDirectory() + '/' \
+ self.current_download_item.downloadFileName()
song_file = open(song_filename, 'rt')
song_file = open(song_filename, 'rt', encoding='utf-8')
song_content = song_file.read()
song_file.seek(0)
if self.check_for_duplicate(song_content):