Skip to content

Commit

Permalink
Changelog for #1036 (fix #1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Oct 28, 2014
1 parent 6d38d9f commit 69b7d1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beetsplug/embedart.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def album_imported(lib, album):


def embed_item(item, imagepath, maxwidth=None, itempath=None,
compare_threshold=0, ifempty=False, asalbum=False):
compare_threshold=0, ifempty=False, as_album=False):
"""Embed an image into the item's media file.
"""
if compare_threshold:
Expand All @@ -126,7 +126,7 @@ def embed_item(item, imagepath, maxwidth=None, itempath=None,
displayable_path(imagepath)
))
return
if maxwidth and not asalbum:
if maxwidth and not as_album:
imagepath = resize_image(imagepath, maxwidth)

try:
Expand Down Expand Up @@ -165,7 +165,7 @@ def embed_album(album, maxwidth=None, quiet=False):
for item in album.items():
embed_item(item, imagepath, maxwidth, None,
config['embedart']['compare_threshold'].get(int),
config['embedart']['ifempty'].get(bool), asalbum=True)
config['embedart']['ifempty'].get(bool), as_album=True)


def resize_image(imagepath, maxwidth):
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Fixes:
interpreted correctly. And WMA (ASF) files now map the ``comments`` field to
the "Description" tag (in addition to "WM/Comments"). Thanks to Matthias
Kiefer. :bug:`1043`
* :doc:`/plugins/embedart`: Avoid resizing the image multiple times when
embedding into an album. Thanks to :user:`kerobaros`. :bug:`1028`,
:bug:`1036`


1.3.8 (September 17, 2014)
Expand Down

0 comments on commit 69b7d1f

Please sign in to comment.