mirror of
https://github.com/evilhero/mylar
synced 2025-01-03 05:24:43 +00:00
IMP: when post-processing/filechecking/searching, will now check to see if the word 'part' is used in lieu of the word 'volume' (ie. part 01) and if the series is a TPB/GN will accept it as match
This commit is contained in:
parent
9579a39c36
commit
5899c5277d
1 changed files with 2 additions and 2 deletions
|
@ -564,7 +564,7 @@ class FileChecker(object):
|
|||
'validcountchk': validcountchk})
|
||||
|
||||
#now we try to find the series title &/or volume lablel.
|
||||
if any( [sf.lower().startswith('v'), sf.lower().startswith('vol'), volumeprior == True, 'volume' in sf.lower(), 'vol' in sf.lower()] ) and sf.lower() not in {'one','two','three','four','five','six'}:
|
||||
if any( [sf.lower().startswith('v'), sf.lower().startswith('vol'), volumeprior == True, 'volume' in sf.lower(), 'vol' in sf.lower(), 'part' in sf.lower()] ) and sf.lower() not in {'one','two','three','four','five','six'}:
|
||||
if any([ split_file[split_file.index(sf)].isdigit(), split_file[split_file.index(sf)][3:].isdigit(), split_file[split_file.index(sf)][1:].isdigit() ]):
|
||||
volume = re.sub("[^0-9]", "", sf)
|
||||
if volumeprior:
|
||||
|
@ -589,7 +589,7 @@ class FileChecker(object):
|
|||
volumeprior_label = sf
|
||||
sep_volume = True
|
||||
logger.fdebug('volume label detected, but vol. number is not adjacent, adjusting scope to include number.')
|
||||
elif 'volume' in sf.lower():
|
||||
elif 'volume' in sf.lower() or all(['part' in sf.lower(), len(sf) == 4]):
|
||||
volume = re.sub("[^0-9]", "", sf)
|
||||
if volume.isdigit():
|
||||
volume_found['volume'] = volume
|
||||
|
|
Loading…
Reference in a new issue