From 3a56077b0ca783bfe75d168e4edf16bd52310d61 Mon Sep 17 00:00:00 2001 From: kerobaros Date: Mon, 27 Oct 2014 21:20:26 -0500 Subject: [PATCH] Fixed logic error, added a .get(bool). --- beetsplug/embedart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 9ea43f43f..00a6ad969 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -126,7 +126,7 @@ def embed_item(item, imagepath, maxwidth=None, itempath=None, displayable_path(imagepath) )) return - if not asalbum: + if maxwidth and not asalbum: imagepath = resize_image(imagepath, maxwidth) try: @@ -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'], asalbum=True) + config['embedart']['ifempty'].get(bool), asalbum=True) def resize_image(imagepath, maxwidth):