latisbooks: fix page parsing, fix cover art (#17135)
* latisbooks: fix page parsing Likely from a preprocessor change on the site's end, the element containing the images had changed. * latisbooks: fix cover art The cover art being used for the comic is pulled from the "latest page" preview on the archive page, which is a square image that tends to not represent the comic very well. Additionally, recently it has failed to load properly for whatever reason. As a remedy, I chose page 198 to be the proper cover. I chose it as it is an interstitial cover page featuring the main character, with no text or elements that tie it to a specific arc. * latisbooks: version bump
This commit is contained in:
parent
50b5d33614
commit
5cdb939669
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Latis Books'
|
extName = 'Latis Books'
|
||||||
pkgNameSuffix = 'en.latisbooks'
|
pkgNameSuffix = 'en.latisbooks'
|
||||||
extClass = '.Latisbooks'
|
extClass = '.Latisbooks'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Latisbooks : HttpSource() {
|
||||||
initialized = true
|
initialized = true
|
||||||
title = "Bodysuit 23"
|
title = "Bodysuit 23"
|
||||||
url = "/archive/"
|
url = "/archive/"
|
||||||
thumbnail_url = response.asJsoup().select("img.thumb-image").firstOrNull()?.attr("abs:data-src")
|
thumbnail_url = "https://images.squarespace-cdn.com/content/v1/56595108e4b01110e1cf8735/1511856223610-NSB8O5OJ1F6KPQL0ZGBH/image-asset.jpeg"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ class Latisbooks : HttpSource() {
|
||||||
val blocks = response.asJsoup().select("div.content-wrapper div.row div.col")
|
val blocks = response.asJsoup().select("div.content-wrapper div.row div.col")
|
||||||
|
|
||||||
// Handle multiple images per page (e.g. Page 23+24)
|
// Handle multiple images per page (e.g. Page 23+24)
|
||||||
val pages = blocks.select("img.thumb-image")
|
val pages = blocks.select("div.image-block-wrapper img")
|
||||||
.mapIndexed { i, it -> Page(i, "", it.attr("abs:data-src")) }
|
.mapIndexed { i, it -> Page(i, "", it.attr("abs:data-src")) }
|
||||||
.toMutableList()
|
.toMutableList()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue