mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 05:24:43 +00:00
FIX: additional location fix for cover.jpg attmpted to be overwritten when cover.jpg already exists.
This commit is contained in:
parent
2359e4f086
commit
848504be21
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue