|
@@ -459,14 +459,14 @@ def gatherdata(directory): |
|
|
|
|
|
|
|
|
## Acquire contents of our log file to be used for album description
|
|
|
## Acquire contents of our log file to be used for album description
|
|
|
# Comments store the album id which matches our log names, so we can use the comment tag to find our album descriptions.
|
|
|
# Comments store the album id which matches our log names, so we can use the comment tag to find our album descriptions.
|
|
|
log_directory = cfg['local_prefs']['log_directory']
|
|
|
|
|
|
# Album description taken from log file.
|
|
|
|
|
|
if cfg['local_prefs']['generate_tracklist']:
|
|
|
|
|
|
log_filename = f"{unique_album_artists} - {tags['ALBUM'][0]}"
|
|
|
|
|
|
album_description = generatelog(tracklist_entries, log_filename, log_directory)
|
|
|
|
|
|
else:
|
|
|
|
|
|
log_filename = tags['COMMENT'][0]
|
|
|
|
|
|
album_description = readlog(log_filename, log_directory)
|
|
|
|
|
|
|
|
|
# log_directory = cfg['local_prefs']['log_directory']
|
|
|
|
|
|
# # Album description taken from log file.
|
|
|
|
|
|
# if cfg['local_prefs']['generate_tracklist']:
|
|
|
|
|
|
# log_filename = f"{unique_album_artists} - {tags['ALBUM'][0]}"
|
|
|
|
|
|
# album_description = generatelog(tracklist_entries, log_filename, log_directory)
|
|
|
|
|
|
# else:
|
|
|
|
|
|
# log_filename = tags['COMMENT'][0]
|
|
|
|
|
|
# album_description = readlog(log_filename, log_directory)
|
|
|
|
|
|
|
|
|
## If release description is enabled we apply comments to the bugs album url
|
|
|
## If release description is enabled we apply comments to the bugs album url
|
|
|
# Note that this is dependant on the album being sourced from bugs so should be changed per user.
|
|
|
# Note that this is dependant on the album being sourced from bugs so should be changed per user.
|
|
|