[MyReadingManga] FIx pages does not parsed correctly (#19202)
* MyReadingManga: Add WebP image support Fix issue where manga published with webp images can not displayed correctly in Tachiyomi. * MyReadingManga: Fix older release images does not parsed * MyReadingManga: Bump version
This commit is contained in:
parent
37521788e4
commit
ed09873e52
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = 'MyReadingManga'
|
extName = 'MyReadingManga'
|
||||||
pkgNameSuffix = 'all.myreadingmanga'
|
pkgNameSuffix = 'all.myreadingmanga'
|
||||||
extClass = '.MyReadingMangaFactory'
|
extClass = '.MyReadingMangaFactory'
|
||||||
extVersionCode = 47
|
extVersionCode = 48
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
|
|||||||
return manga
|
return manga
|
||||||
}
|
}
|
||||||
|
|
||||||
private val extensionRegex = Regex("""\.(jpg|png|jpeg)""")
|
private val extensionRegex = Regex("""\.(jpg|png|jpeg|webp)""")
|
||||||
|
|
||||||
private fun getImage(element: Element): String {
|
private fun getImage(element: Element): String {
|
||||||
return when {
|
return when {
|
||||||
@ -217,7 +217,7 @@ open class MyReadingManga(override val lang: String, private val siteLang: Strin
|
|||||||
// Pages
|
// Pages
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return (document.select("div > img") + document.select("div.separator img[data-src]"))
|
return (document.select("div img") + document.select("div.separator img[data-src]"))
|
||||||
.map { getImage(it) }
|
.map { getImage(it) }
|
||||||
.distinct()
|
.distinct()
|
||||||
.mapIndexed { i, url -> Page(i, "", url) }
|
.mapIndexed { i, url -> Page(i, "", url) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user