Skip to content

Commit

Permalink
Merge branch 'fix-2254-1545' of git://github.com/beetbox/beets into f…
Browse files Browse the repository at this point in the history
…ix-2254-1545
  • Loading branch information
nathdwek@laptop committed Nov 8, 2016
2 parents 47e6ea9 + 15e2b4a commit 91eccc8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions beets/mediafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -82,7 +82,7 @@
'aiff': 'AIFF',
}

PREFERRED_IMAGE_EXTENSIONS = IdentityUnlessDict({'jpeg': 'jpg'})
PREFERRED_IMAGE_EXTENSIONS = IdentityFallbackDict({'jpeg': 'jpg'})


# Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion beets/util/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
8 changes: 7 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand Down

0 comments on commit 91eccc8

Please sign in to comment.