Update for previous fix regarding volume parsing

Narrowed the parameters in which a str.split() would be used to be more exclusive
This commit is contained in:
Yovarni Yearwood 2019-09-23 10:28:17 -04:00 committed by evilhero
parent 4ae28f6dbf
commit 07750a32da
1 changed files with 1 additions and 1 deletions

View File

@ -597,7 +597,7 @@ class FileChecker(object):
#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(), '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 '.' in sf:
if all(identifier in sf for identifier in ['.', 'v']):
volume = sf.split('.')[0]
else:
volume = re.sub("[^0-9]", "", sf)