Fixed settings not defined

This commit is contained in:
RemixDev 2020-08-16 13:58:14 +02:00
parent af06d963da
commit 1c08564874
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ class DownloadJob:
# Save lyrics in lrc file
if self.settings['syncedLyrics'] and track.lyrics['sync']:
if not os.path.isfile(os.path.join(filepath, filename + '.lrc')) or settings['overwriteFile'] in ['y', 't']:
if not os.path.isfile(os.path.join(filepath, filename + '.lrc')) or self.settings['overwriteFile'] in ['y', 't']:
with open(os.path.join(filepath, filename + '.lrc'), 'wb') as f:
f.write(track.lyrics['sync'].encode('utf-8'))