diff --git a/beetsplug/mbsync.py b/beetsplug/mbsync.py index 283c401865..c0f32bb964 100644 --- a/beetsplug/mbsync.py +++ b/beetsplug/mbsync.py @@ -122,6 +122,10 @@ def albums(self, lib, query, move, pretend, write): items = list(a.items()) + if not items: + self._log.info("Skipping empty album: {0}", album_formatted) + continue + # Do we have a valid MusicBrainz album ID? if not re.match(MBID_REGEX, a.mb_albumid): self._log.info( diff --git a/docs/changelog.rst b/docs/changelog.rst index 9fb3b9e3ff..872205f379 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -89,6 +89,7 @@ New features: Bug fixes: +* :doc:`plugins/mbsync`: Skip empty albums. * :doc:`plugins/ftintitle`: The detection of a "feat. X" part in a song title does not produce any false positives caused by words like "and" or "with" anymore. :bug:`5441` * :doc:`plugins/ftintitle`: The detection of a "feat. X" part now also matches such parts if they are in