Actually, for the odd case where series exist but it doesn't have a index:
Code:
if series is not None:
mi.series = series
if series_index is not None:
series_index = re.search("(\d+)", series_index)
if series_index is not None and float(series_index.group(1)) < 3000:
mi.series_index = series_index.group(1)
This will leave index out for all that has a series listed but not index, so they'll all end up as [1], but it's better than crashing/failing to download metadata I think?
Example:
https://www.adlibris.com/se/e-bok/de...-9788726381689