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:
parent
0a50c65241
commit
d7810adafc
1 changed files with 3 additions and 3 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue