mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 05:24:43 +00:00
FIX:(#2002) File parser not parsing titles in format of 'series - year - issue' when series contains a '-'
This commit is contained in:
parent
3af66dffd0
commit
3768a873b8
1 changed files with 6 additions and 0 deletions
|
@ -1018,6 +1018,12 @@ class FileChecker(object):
|
|||
#c1 = '+'
|
||||
#series_name = ' '.join(split_file[:highest_series_pos])
|
||||
if yearposition != 0:
|
||||
if yearposition is not None and yearposition < highest_series_pos:
|
||||
if yearposition+1 == highest_series_pos:
|
||||
highest_series_pos = yearposition
|
||||
else:
|
||||
if split_file[yearposition+1] == '-' and yearposition+2 == highest_series_pos:
|
||||
highest_series_pos = yearposition
|
||||
series_name = ' '.join(split_file[:highest_series_pos])
|
||||
else:
|
||||
if highest_series_pos <= issue_number_position and all([len(split_file[0]) == 4, split_file[0].isdigit()]):
|
||||
|
|
Loading…
Reference in a new issue