Fixes MyReadingManga selector and jpeg thumbnails (#639)
Fixes MyReadingManga selector and jpeg thumbnails
This commit is contained in:
parent
687594d1f2
commit
99fce4c23e
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: MyReadingManga'
|
appName = 'Tachiyomi: MyReadingManga'
|
||||||
pkgNameSuffix = 'all.myreadingmanga'
|
pkgNameSuffix = 'all.myreadingmanga'
|
||||||
extClass = '.MyReadingMangaFactory'
|
extClass = '.MyReadingMangaFactory'
|
||||||
extVersionCode = 15
|
extVersionCode = 16
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() {
|
||||||
var url =
|
var url =
|
||||||
when {
|
when {
|
||||||
element.attr("data-src").endsWith(".jpg") || element.attr("data-src").endsWith(".png") || element.attr("data-src").endsWith(".jpeg") -> element.attr("data-src")
|
element.attr("data-src").endsWith(".jpg") || element.attr("data-src").endsWith(".png") || element.attr("data-src").endsWith(".jpeg") -> element.attr("data-src")
|
||||||
element.attr("src").endsWith(".jpg") || element.attr("src").endsWith(".png") || element.attr("data-src").endsWith(".jpeg") -> element.attr("src")
|
element.attr("src").endsWith(".jpg") || element.attr("src").endsWith(".png") || element.attr("src").endsWith(".jpeg") -> element.attr("src")
|
||||||
else -> element.attr("data-lazy-src")
|
else -> element.attr("data-lazy-src")
|
||||||
}
|
}
|
||||||
if (url.startsWith("//")) {
|
if (url.startsWith("//")) {
|
||||||
|
@ -163,7 +163,7 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() {
|
||||||
override fun pageListParse(response: Response): List<Page> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val body = response.asJsoup()
|
val body = response.asJsoup()
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
val elements = body.select("[data-lazyloaded='1']:not([width='120']):not([data-original-width='300'])")
|
val elements = body.select("[data-original-width]:not([width='120']):not([data-original-width='300'])")
|
||||||
for (i in 0 until elements.size) {
|
for (i in 0 until elements.size) {
|
||||||
pages.add(Page(i, "", getImage(elements[i])))
|
pages.add(Page(i, "", getImage(elements[i])))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue