mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 08:27:24 +00:00
[jm] Fix calculation of favorites page count.
This commit is contained in:
4
jm.js
4
jm.js
@@ -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,
|
||||
|
Reference in New Issue
Block a user