1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-02 04:21:43 +00:00

FIX:(#802) Saving cover.jpg into series folders via configuration option, would not copy under certain conditions, IMP: Removed unnecessary (spam) logging when refreshing a series

This commit is contained in:
evilhero 2014-08-26 22:20:16 -04:00
parent 708ba2ccd2
commit a26f761334
2 changed files with 4 additions and 4 deletions

View file

@ -431,9 +431,9 @@ def addComictoDB(comicid,mismatch=None,pullupd=None,imported=None,ogcname=None,c
if mylar.COMIC_COVER_LOCAL:
try:
comiclocal = os.path.join(comlocation,'cover.jpg')
shutil.copy(ComicImage,comiclocal)
shutil.copy(coverfile,comiclocal)
except IOError as e:
logger.error('Unable to save cover into series directory at this time.')
logger.error('Unable to save cover (' + str(coverfile) + ') into series directory (' + str(comiclocal) + ') at this time.')
if oldcomversion is None or oldcomversion == "None":
logger.info('previous version detected as None - seeing if update required')

View file

@ -121,8 +121,8 @@ def dbUpdate(ComicIDList=None, calledfrom=None):
fndissue = []
for issue in issues:
for issuenew in issues_new:
logger.fdebug(str(issue['Issue_Number']) + ' - issuenew:' + str(issuenew['IssueID']) + ' : ' + str(issuenew['Status']))
logger.fdebug(str(issue['Issue_Number']) + ' - issue:' + str(issue['IssueID']) + ' : ' + str(issue['Status']))
#logger.fdebug(str(issue['Issue_Number']) + ' - issuenew:' + str(issuenew['IssueID']) + ' : ' + str(issuenew['Status']))
#logger.fdebug(str(issue['Issue_Number']) + ' - issue:' + str(issue['IssueID']) + ' : ' + str(issue['Status']))
try:
if issuenew['IssueID'] == issue['IssueID'] and (issuenew['Status'] != issue['Status'] or issue['IssueDate_Edit'] is not None):
ctrlVAL = {"IssueID": issue['IssueID']}