mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 07:42:24 +00:00
FIX: When doing search match comparisons would ignore the year matching criteria if the filename contained the issue year, but the Volume label in Mylar was V1
This commit is contained in:
parent
36f544b6d9
commit
ffd597b2cf
1 changed files with 25 additions and 23 deletions
|
@ -1122,6 +1122,9 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
|
|||
continue
|
||||
else:
|
||||
logger.fdebug('match_check: %s' % filecomic)
|
||||
if filecomic['process_status'] == 'fail':
|
||||
logger.fdebug('%s was not a match to %s (%s)' % (cleantitle, ComicName, SeriesYear))
|
||||
continue
|
||||
elif booktype != parsed_comic['booktype']:
|
||||
logger.fdebug('Booktypes do not match. Looking for %s, this is a %s. Ignoring this result.' % (booktype, parsed_comic['booktype']))
|
||||
continue
|
||||
|
@ -1175,12 +1178,11 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
|
|||
else:
|
||||
logger.fdebug("error - unknown length for : %s" % parsed_comic['series_volume'])
|
||||
|
||||
|
||||
yearmatch = "false"
|
||||
if vers4vol != "no" or vers4year != "no":
|
||||
logger.fdebug("Series Year not provided but Series Volume detected of %s. Bypassing Year Match." % fndcomicversion)
|
||||
yearmatch = "true"
|
||||
elif ComVersChk == 0:
|
||||
elif ComVersChk == 0 and parsed_comic['issue_year'] is None:
|
||||
logger.fdebug("Series version detected as V1 (only series in existance with that title). Bypassing Year/Volume check")
|
||||
yearmatch = "true"
|
||||
elif any([UseFuzzy == "0", UseFuzzy == "2", UseFuzzy is None, IssDateFix != "no"]) and parsed_comic['issue_year'] is not None:
|
||||
|
|
Loading…
Reference in a new issue