mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-23 12:46:49 +02:00
Fix page numbers
This commit is contained in:
@ -86,6 +86,8 @@ class BedetequeScraper:
|
|||||||
search_nb_pages = re.search(regex_nb_of_pages, content)
|
search_nb_pages = re.search(regex_nb_of_pages, content)
|
||||||
if search_nb_pages and search_nb_pages.group(1).isnumeric():
|
if search_nb_pages and search_nb_pages.group(1).isnumeric():
|
||||||
data['number_of_pages'] = search_nb_pages.group(1)
|
data['number_of_pages'] = search_nb_pages.group(1)
|
||||||
|
elif 'number_of_pages' not in data:
|
||||||
|
data['number_of_pages'] = 0
|
||||||
|
|
||||||
# Get author and illustrator
|
# Get author and illustrator
|
||||||
author = re.search(regex_author, content)
|
author = re.search(regex_author, content)
|
||||||
|
Reference in New Issue
Block a user