mirror of
https://github.com/evilhero/mylar
synced 2025-02-01 12:07:50 +00:00
FIX: when saving cover.jpg into series directory during a refresh/dbUpdate - if cover.jpg existed would log an error when it shouldn't be triggered at all
This commit is contained in:
parent
4df0876b44
commit
2359e4f086
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ def addComictoDB(comicid, mismatch=None, pullupd=None, imported=None, ogcname=No
|
|||
covercheck = helpers.getImage(comicid, comic['ComicImageALT'])
|
||||
|
||||
#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) is False]):
|
||||
if all([mylar.CONFIG.COMIC_COVER_LOCAL is True, os.path.isdir(comlocation) is True, os.path.isfile(os.path.join(comlocation, 'cover.jpg')) is False]):
|
||||
try:
|
||||
comiclocal = os.path.join(comlocation, 'cover.jpg')
|
||||
shutil.copyfile(PRComicImage, comiclocal)
|
||||
|
|
Loading…
Reference in a new issue