1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-01-02 21:14:41 +00:00

Not integer exception when file is like 'Something 1-74+Annuals 1-3'

This commit is contained in:
Peluko 2019-09-19 20:47:27 +02:00 committed by evilhero
parent 46cd4d9317
commit 2776f47198

View file

@ -2476,7 +2476,8 @@ def issue_find_ids(ComicName, ComicID, pack, IssueNumber):
tmp_annuals = pack[pack.find('Annual'):]
tmp_ann = re.sub('[annual/annuals/+]', '', tmp_annuals.lower()).strip()
tmp_pack = re.sub('[annual/annuals/+]', '', pack.lower()).strip()
pack_issues = range(int(tmp_pack[:tmp_pack.find('-')]),int(tmp_pack[tmp_pack.find('-')+1:])+1)
pack_issues_numbers = re.findall(r'\d+', tmp_pack)
pack_issues = range(int(pack_issues_numbers[0]),int(pack_issues_numbers[1])+1)
annualize = True
issues = {}