1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-03-10 05:52:48 +00:00

Fix: cover.jpg was being downloaded and placed in series directory regardless of option check.

This commit is contained in:
evilhero 2013-01-03 22:12:58 -05:00
parent 0a50c65241
commit d7810adafc

View file

@ -193,9 +193,9 @@ def addComictoDB(comicid,mismatch=None,pullupd=None):
ComicImage = "cache/" + str(comicid) + ".jpg" ComicImage = "cache/" + str(comicid) + ".jpg"
logger.info(u"Sucessfully retrieved cover for " + str(comic['ComicName'])) 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 the comic cover local is checked, save a cover.jpg to the series folder.
# if mylar.COMIC_COVER_LOCAL: if mylar.COMIC_COVER_LOCAL:
comiclocal = os.path.join(str(comlocation) + "/cover.jpg") comiclocal = os.path.join(str(comlocation) + "/cover.jpg")
shutil.copy(ComicImage,comiclocal) shutil.copy(ComicImage,comiclocal)
except IOError as e: except IOError as e:
logger.error(u"Unable to save cover locally at this time.") logger.error(u"Unable to save cover locally at this time.")