From 848504be219592a2f27b65cb1e5e393078337a2c Mon Sep 17 00:00:00 2001 From: evilhero Date: Wed, 13 Mar 2019 11:39:24 -0400 Subject: [PATCH] FIX: additional location fix for cover.jpg attmpted to be overwritten when cover.jpg already exists. --- mylar/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylar/importer.py b/mylar/importer.py index 2f7fa82c..cfe020e6 100644 --- a/mylar/importer.py +++ b/mylar/importer.py @@ -1599,7 +1599,7 @@ def image_it(comicid, latestissueid, comlocation, ComicImage): ComicImage = helpers.replacetheslash(PRComicImage) #if the comic cover local is checked, save a cover.jpg to the series folder. - if all([mylar.CONFIG.COMIC_COVER_LOCAL is True, os.path.isdir(comlocation) is True, os.path.isfile(PRComicImage)]): + if all([mylar.CONFIG.COMIC_COVER_LOCAL is True, os.path.isdir(comlocation) is True, os.path.isfile(os.path.join(comlocation, 'cover.jpg'))]): try: comiclocal = os.path.join(comlocation, 'cover.jpg') shutil.copyfile(PRComicImage, comiclocal)