mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 09:49:36 +01:00
Make embedLyrics() actually check if lyrics found
Checking metalyrics, the variable, not lyrics the module
This commit is contained in:
@@ -863,7 +863,7 @@ def embedLyrics(downloaded_track_list):
|
|||||||
logger.info('No artist/track metadata found for track: %s. Not fetching lyrics', track_title)
|
logger.info('No artist/track metadata found for track: %s. Not fetching lyrics', track_title)
|
||||||
metalyrics = None
|
metalyrics = None
|
||||||
|
|
||||||
if lyrics:
|
if metalyrics:
|
||||||
logger.debug('Adding lyrics to: %s', track_title)
|
logger.debug('Adding lyrics to: %s', track_title)
|
||||||
f.lyrics = metalyrics
|
f.lyrics = metalyrics
|
||||||
try:
|
try:
|
||||||
@@ -871,6 +871,9 @@ def embedLyrics(downloaded_track_list):
|
|||||||
except:
|
except:
|
||||||
logger.error('Cannot save lyrics to: %s. Skipping', track_title)
|
logger.error('Cannot save lyrics to: %s. Skipping', track_title)
|
||||||
continue
|
continue
|
||||||
|
else:
|
||||||
|
logger.debug('No lyrics found for track: %s', track_title)
|
||||||
|
|
||||||
|
|
||||||
def renameFiles(albumpath, downloaded_track_list, release):
|
def renameFiles(albumpath, downloaded_track_list, release):
|
||||||
logger.info('Renaming files')
|
logger.info('Renaming files')
|
||||||
|
|||||||
Reference in New Issue
Block a user