mirror of
https://github.com/evilhero/mylar
synced 2024-12-22 07:42:24 +00:00
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:
parent
4ae28f6dbf
commit
07750a32da
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue