Skip to content

Commit

Permalink
Merge pull request #5 from jpmenil/fix/bdgest
Browse files Browse the repository at this point in the history
bdgest: ensure integer for Pages, fix Volumes when fetch integrales
  • Loading branch information
lbesnard authored Nov 17, 2022
2 parents da95f85 + 57e30a8 commit efe078a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bdnex/lib/bdgest.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,14 @@ def parse_album_metadata_mobile(self, album_name):
except:
pass

if isinstance(album_meta_dict['Planches'], str):
album_meta_dict['Planches'] = int(album_meta_dict['Planches'])
if isinstance(album_meta_dict['Tome'], str):
regex = re.compile(r'(\d+|\s+)')
r = regex.split(album_meta_dict['Tome'])
tome = list(filter(None, r))[-1]
album_meta_dict['Tome']= int(tome)

self.album_meta_dict = album_meta_dict
comicrack_dict = self.comicinfo_metadata(album_meta_dict)

Expand Down

0 comments on commit efe078a

Please sign in to comment.