Skip to content

Commit ef27f01

Browse files
committed
fixed remanga pages count
1 parent 96157d6 commit ef27f01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nlightreader/parsers/manga/remanga_manga.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ def get_images(self, manga: Manga, chapter: Chapter):
7878
response = get_html(url, headers=self.headers, content_type="json")
7979
images = []
8080
if response:
81-
for page_data in get_data(response, ["content", "pages"], {}):
81+
for i, page_data in enumerate(get_data(response, ["content", "pages"], {})):
8282
page_data = page_data[0]
8383
pg_id = page_data.get("id")
84-
page = page_data.get("page")
84+
page = i + 1
8585
pg_link = page_data.get("link")
8686
images.append(Image(pg_id, page, pg_link))
8787
return images

0 commit comments

Comments
 (0)