View Single Post
Old 04-11-2021, 06:36 PM   #10
Marween
Junior Member
Marween began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2021
Device: none
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
Marween is offline   Reply With Quote