FIX:(#1881) When Manual metatagging (either individual/series) would delete the metatagged .cbz file if the original was also a .cbz

This commit is contained in:
evilhero 2018-03-07 16:29:19 -05:00
parent 1803db9e53
commit 284ddb822c
1 changed files with 1 additions and 1 deletions

View File

@ -5175,7 +5175,7 @@ class WebInterface(object):
logger.fdebug('Failed to remove temporary directory: %s' % cache_dir)
if filename is not None:
if os.path.isfile(filename):
if os.path.isfile(filename) and os.path.split(filename)[1].lower() != os.path.split(metaresponse)[1].lower():
try:
logger.fdebug('%s Removing original filename: %s' % (module, filename))
os.remove(filename)