[jm] Fix calculation of favorites page count.

This commit is contained in:
2025-02-23 10:29:31 +08:00
parent 1282fec677
commit 9f17e17fa3
2 changed files with 3 additions and 3 deletions

4
jm.js
View File

@@ -7,7 +7,7 @@ class JM extends ComicSource {
// unique id of the source
key = "jm"
version = "1.1.2"
version = "1.1.3"
minAppVersion = "1.2.5"
@@ -613,7 +613,7 @@ class JM extends ComicSource {
let res = await this.get(`${this.baseUrl}/favorite?folder_id=${folder}&page=${page}&o=${order}`)
let json = JSON.parse(res)
let total = json.total
let maxPage = Math.ceil(total / 80)
let maxPage = Math.ceil(total / 20)
let comics = json.list.map((e) => this.parseComic(e))
return {
comics: comics,