Fixed logic error, added a .get(bool).

This commit is contained in:
kerobaros 2014-10-27 21:20:26 -05:00
parent 81b513c720
commit 3a56077b0c

View file

@ -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):