mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 15:52:47 +00:00
FIX: fix for file parser error when parsing filename in which series contain numerics and was a special volume
This commit is contained in:
parent
224c354c99
commit
d340026502
1 changed files with 9 additions and 8 deletions
|
@ -790,14 +790,15 @@ class FileChecker(object):
|
||||||
yearposition = possible_years[0]['yearposition']
|
yearposition = possible_years[0]['yearposition']
|
||||||
yearmodposition = possible_years[0]['yearmodposition']
|
yearmodposition = possible_years[0]['yearmodposition']
|
||||||
else:
|
else:
|
||||||
for x in possible_years:
|
if len(possible_issuenumbers) > 0:
|
||||||
logger.info('yearposition[%s] -- dc[position][%s]' % (yearposition, x['yearposition']))
|
for x in possible_years:
|
||||||
if yearposition < x['yearposition']:
|
logger.info('yearposition[%s] -- dc[position][%s]' % (yearposition, x['yearposition']))
|
||||||
if all([len(possible_issuenumbers) == 1, possible_issuenumbers[0]['number'] == x['year'], x['yearposition'] != possible_issuenumbers[0]['position']]):
|
if yearposition < x['yearposition']:
|
||||||
issue2year = True
|
if all([len(possible_issuenumbers) == 1, possible_issuenumbers[0]['number'] == x['year'], x['yearposition'] != possible_issuenumbers[0]['position']]):
|
||||||
highest_series_pos = x['yearposition']
|
issue2year = True
|
||||||
yearposition = x['yearposition']
|
highest_series_pos = x['yearposition']
|
||||||
yearmodposition = x['yearmodposition']
|
yearposition = x['yearposition']
|
||||||
|
yearmodposition = x['yearmodposition']
|
||||||
|
|
||||||
if highest_series_pos > yearposition: highest_series_pos = yearposition #dc['position']: highest_series_pos = dc['position']
|
if highest_series_pos > yearposition: highest_series_pos = yearposition #dc['position']: highest_series_pos = dc['position']
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue