Fix crash
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Michel Roux 2021-05-18 14:34:13 +02:00
parent 3b5f58ddef
commit d7f4604437
2 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@ for volume_tag in tags:
proceed = True
continue
if 'Volume' in volume_tag.get_text() and int(volume_tag.get_text().replace('Volume ', '')) < 3:
if 'Volume' in volume_tag.get_text() and int(volume_tag.get_text().replace('Volume ', '')) < len(volumes):
proceed = False
continue

View File

@ -14,6 +14,8 @@ volumes = [
Epub("L'auberge Vagabonde - Volume 1", creator='Maroti, ElliVia', rights='Pirateaba', language='fr',
cover='cover.png'),
Epub("L'auberge Vagabonde - Volume 2", creator='Maroti, ElliVia', rights='Pirateaba', language='fr',
cover='cover.png'),
Epub("L'auberge Vagabonde - Volume 3", creator='Maroti, ElliVia', rights='Pirateaba', language='fr',
cover='cover.png')
]