- if VOLUME_SEPARATOR not in title:
- return title, ''
- else:
- vol_idx = title.index(VOLUME_SEPARATOR)
- stripped = title[:vol_idx]
- vol_name = title[vol_idx + len(VOLUME_SEPARATOR):]
- if vol_name in VOLUME_NUMBERS:
- return stripped, VOLUME_NUMBERS[vol_name]
- else:
- return title, ''
+ for volume_separator in VOLUME_SEPARATORS:
+ if volume_separator in title.lower():
+ vol_idx = title.lower().index(volume_separator)
+ stripped = title[:vol_idx]
+ vol_name = title[vol_idx + 2:]
+ return stripped, vol_name
+ return title, ''