diff --git a/beets/mediafile.py b/beets/mediafile.py index 3faf2f60ea..784695c1a7 100644 --- a/beets/mediafile.py +++ b/beets/mediafile.py @@ -59,7 +59,7 @@ from beets import logging from beets.util import displayable_path, syspath, as_string -from beets.util.collections import IdentityUnlessDict +from beets.util.collections import IdentityFallbackDict import six @@ -82,7 +82,7 @@ 'aiff': 'AIFF', } -PREFERRED_IMAGE_EXTENSIONS = IdentityUnlessDict({'jpeg': 'jpg'}) +PREFERRED_IMAGE_EXTENSIONS = IdentityFallbackDict({'jpeg': 'jpg'}) # Exceptions. diff --git a/beets/util/collections.py b/beets/util/collections.py index dad49a4a40..6813b95df7 100644 --- a/beets/util/collections.py +++ b/beets/util/collections.py @@ -16,7 +16,7 @@ """ -class IdentityUnlessDict(dict): +class IdentityFallbackDict(dict): """A dictionary which is "transparent" (maps keys to themselves) for all keys not in it. """ diff --git a/docs/changelog.rst b/docs/changelog.rst index 08be98a5c8..7c03e230d2 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -52,6 +52,12 @@ The are a couple of small new features: And there are a few bug fixes too: +* :doc:`/plugins/embedart`: The plugin now uses ``jpg`` as an extension rather + than ``jpeg``, to ensure consistency with :doc:`plugins/fetchart`. + Thanks to :user:`tweitzel`. :bug:`2254` :bug:`2255` +* :doc:`/plugins/embedart`: The plugin now works for all jpeg files, including + those that are only recognizable by their magic bytes. + :bug:`1545` :bug:`2255` * :doc:`/plugins/web`: The JSON output is no longer pretty-printed (for a space savings). :bug:`2050` * :doc:`/plugins/permissions`: Fix a regression in the previous release where @@ -70,7 +76,7 @@ And there are a few bug fixes too: This is fixed. :bug:`2168` * :doc:`/plugins/embyupdate`: Fixes authentication header problem that caused a problem that it was not possible to get tokens from the Emby API. -* :doc:`/plugins/lyrics`: Search for lyrics using the title part preceding the +* :doc:`/plugins/lyrics`: Search for lyrics using the title part preceding the colon character. :bug:`2206` * Fix a crash when a query contains a date field that is not set for all the items. :bug:`1938`