Skip to content

Commit

Permalink
Preserve album art on re-import (fixes #314)
Browse files Browse the repository at this point in the history
Copy the replaced album's artpath attribute to the new album. This
causes the image file to be moved along with the music files.
  • Loading branch information
reiv committed Nov 3, 2015
1 parent 21f926f commit 32934bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beets/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ def reimport_metadata(self, lib):
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 '
Expand Down

0 comments on commit 32934bd

Please sign in to comment.