[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

View File

@@ -45,6 +45,6 @@
"name": "禁漫天堂", "name": "禁漫天堂",
"fileName": "jm.js", "fileName": "jm.js",
"key": "jm", "key": "jm",
"version": "1.1.2" "version": "1.1.3"
} }
] ]

4
jm.js
View File

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