From d7810adafc11a1345fc978ced7de974ded4939ce Mon Sep 17 00:00:00 2001 From: evilhero Date: Thu, 3 Jan 2013 22:12:58 -0500 Subject: [PATCH] Fix: cover.jpg was being downloaded and placed in series directory regardless of option check. --- mylar/importer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mylar/importer.py b/mylar/importer.py index cb96b586..689b05ec 100755 --- a/mylar/importer.py +++ b/mylar/importer.py @@ -193,9 +193,9 @@ def addComictoDB(comicid,mismatch=None,pullupd=None): ComicImage = "cache/" + str(comicid) + ".jpg" logger.info(u"Sucessfully retrieved cover for " + str(comic['ComicName'])) #if the comic cover local is checked, save a cover.jpg to the series folder. - # if mylar.COMIC_COVER_LOCAL: - comiclocal = os.path.join(str(comlocation) + "/cover.jpg") - shutil.copy(ComicImage,comiclocal) + if mylar.COMIC_COVER_LOCAL: + comiclocal = os.path.join(str(comlocation) + "/cover.jpg") + shutil.copy(ComicImage,comiclocal) except IOError as e: logger.error(u"Unable to save cover locally at this time.")