diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index 756448720..050ddbd81 100644 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -55,7 +55,9 @@ class FormattedMapping(collections.Mapping): def __len__(self): return len(self.model_keys) - def get(self, key, default=u''): + def get(self, key, default=None): + if default is None: + default = self.model._type(key).format(None) return super(FormattedMapping, self).get(key, default) def _get_formatted(self, model, key): diff --git a/docs/changelog.rst b/docs/changelog.rst index 8fbb5e46d..9805db98c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -26,6 +26,8 @@ Fixes: converted files. * Formatting templates with item data no longer confusingly shows album-level data when the two are inconsistent. +* Resuming imports and beginning incremental imports should now be much faster + when there is a lot of previously-imported music to skip. .. _discogs_client: https://github.com/discogs/discogs_client