1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-01 20:11:31 +00:00

FIX:(#1249) 'Sub' key error when performing Recheck Files/Post-Processing, FIX: Fix for proper volume detection when parsing search results

This commit is contained in:
evilhero 2016-04-13 23:56:33 -04:00
parent 4bd6cc7cf0
commit 62fe079e4f
2 changed files with 5 additions and 2 deletions

View file

@ -166,7 +166,7 @@ class FileChecker(object):
})
comiccnt +=1
else:
#failiure
#failure
self.failed_files.append({'parse_status': 'failure',
'sub': runresults['sub'],
'comicfilename': runresults['comicfilename'],
@ -857,6 +857,7 @@ class FileChecker(object):
logger.info('[NO MATCH] ' + filename + ' [WATCHLIST:' + self.watchcomic + ']')
return {'process_status': 'fail',
'comicfilename': filename,
'sub': series_info['sub'],
'comiclocation': series_info['comiclocation'],
'series_name': series_info['series_name'],
'issue_number': series_info['issue_number'],

View file

@ -660,7 +660,7 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
#this is the crap we ignore. Continue (commented else, as it spams the logs)
#logger.fdebug('this starts with FOR : ' + str(subs) + '. This is not present in the series - ignoring.')
continue
logger.fdebug('Detected crap within header. Ignoring this portion of the result in order to see if it\'s a valid match.')
logger.fdebug('Detected crap within header. Ignoring this portion of the result in order to see if it\'s a valid match.')
ComicTitle = subs
break
@ -914,6 +914,8 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
continue
if fndcomicversion:
if origvol:
fndcomicversion = origvol
cleantitle = re.sub(fndcomicversion, '', cleantitle).strip()
logger.fdebug('Newly finished reformed cleantitle (with NO volume label): ' + cleantitle)
versionfound = "yes"