mirror of
https://github.com/evilhero/mylar
synced 2024-12-25 17:16:51 +00:00
FIX: fix for filecheck errors when rechecking files or post-processing (list index out of range error).
This commit is contained in:
parent
51777e8e19
commit
b6b8c6293a
1 changed files with 11 additions and 4 deletions
|
@ -757,12 +757,15 @@ def listFiles(dir,watchcomic,Publisher,AlternateSearch=None,manual=None,sarc=Non
|
||||||
|
|
||||||
justthedigits = justthedigits_1.split(' ', 1)[0]
|
justthedigits = justthedigits_1.split(' ', 1)[0]
|
||||||
digitsvalid = "false"
|
digitsvalid = "false"
|
||||||
|
|
||||||
if not justthedigits.isdigit():
|
if not justthedigits.isdigit():
|
||||||
logger.fdebug('[FILECHECKER] Invalid character found in filename after item removal - cannot find issue # with this present. Temporarily removing it from the comparison to be able to proceed.')
|
logger.fdebug('[FILECHECKER] Invalid character found in filename after item removal - cannot find issue # with this present. Temporarily removing it from the comparison to be able to proceed.')
|
||||||
justthedigits = justthedigits_1.split(' ', 1)[1]
|
try:
|
||||||
if justthedigits.isdigit():
|
justthedigits = justthedigits_1.split(' ', 1)[1]
|
||||||
digitsvalid = "true"
|
if justthedigits.isdigit():
|
||||||
|
digitsvalid = "true"
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if not digitsvalid:
|
if not digitsvalid:
|
||||||
for jdc in list(justthedigits):
|
for jdc in list(justthedigits):
|
||||||
|
@ -1057,6 +1060,10 @@ def listFiles(dir,watchcomic,Publisher,AlternateSearch=None,manual=None,sarc=Non
|
||||||
logger.fdebug('[FILECHECKER] failure - not an exact match.')
|
logger.fdebug('[FILECHECKER] failure - not an exact match.')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if comicsize == 0:
|
||||||
|
logger.fdebug('[FILECHECKER] Size of given file is 0 bytes. Ignoring.')
|
||||||
|
continue
|
||||||
|
|
||||||
if manual:
|
if manual:
|
||||||
#print item
|
#print item
|
||||||
#print comicpath
|
#print comicpath
|
||||||
|
|
Loading…
Reference in a new issue