Preserve album art on re-import (fixes #314)

Copy the replaced album's artpath attribute to the new album. This
causes the image file to be moved along with the music files.
This commit is contained in:
reiv 2015-11-03 22:43:05 +01:00
parent 21f926fb89
commit 32934bd16a

View file

@ -718,6 +718,7 @@ class ImportTask(BaseImportTask):
if replaced_album:
self.album.added = replaced_album.added
self.album.update(replaced_album._values_flex)
self.album.artpath = replaced_album.artpath
self.album.store()
log.debug(
u'Reimported album: added {0}, flexible '