mirror of https://github.com/evilhero/mylar
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
|
@ -564,7 +564,7 @@ class FileChecker(object):
|
||||||
'validcountchk': validcountchk})
|
'validcountchk': validcountchk})
|
||||||
|
|
||||||
#now we try to find the series title &/or volume lablel.
|
#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() ]):
|
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)
|
volume = re.sub("[^0-9]", "", sf)
|
||||||
if volumeprior:
|
if volumeprior:
|
||||||
|
@ -589,7 +589,7 @@ class FileChecker(object):
|
||||||
volumeprior_label = sf
|
volumeprior_label = sf
|
||||||
sep_volume = True
|
sep_volume = True
|
||||||
logger.fdebug('volume label detected, but vol. number is not adjacent, adjusting scope to include number.')
|
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)
|
volume = re.sub("[^0-9]", "", sf)
|
||||||
if volume.isdigit():
|
if volume.isdigit():
|
||||||
volume_found['volume'] = volume
|
volume_found['volume'] = volume
|
||||||
|
|
Loading…
Reference in New Issue