Skip to content

Commit

Permalink
Merge pull request #3030 from projectgus/remove_missing_albumart
Browse files Browse the repository at this point in the history
move_art: Remove missing album art
  • Loading branch information
sampsyo committed Oct 9, 2018
2 parents a7e44e8 + e58ddbf commit b0add60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions beets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,12 @@ def move_art(self, operation=MoveOperation.MOVE):
if not old_art:
return

if not os.path.exists(old_art):
log.error(u'removing reference to missing album art file {}',
util.displayable_path(old_art))
self.artpath = None
return

new_art = self.art_destination(old_art)
if new_art == old_art:
return
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ Fixes:
* The ``%aunique`` template function now works correctly with the
``-f/--format`` option.
:bug:`3043`
* Missing album art file during an update no longer causes a fatal exception
(instead, an error is logged and the missing file path is removed from the
library). :bug:`3030`

.. _python-itunes: https://github.com/ocelma/python-itunes

Expand Down

0 comments on commit b0add60

Please sign in to comment.