mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-13 18:17:32 +01:00
Replace bad image url with the logo in mangafox. Related with #626
This commit is contained in:
parent
2c8790c545
commit
49d0e06704
1 changed files with 8 additions and 1 deletions
|
@ -137,7 +137,14 @@ class Mangafox(override val id: Int) : ParsedOnlineSource() {
|
||||||
override fun pageListParse(document: Document, pages: MutableList<Page>) {
|
override fun pageListParse(document: Document, pages: MutableList<Page>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun imageUrlParse(document: Document) = document.getElementById("image").attr("src")
|
override fun imageUrlParse(document: Document): String {
|
||||||
|
val url = document.getElementById("image").attr("src")
|
||||||
|
return if ("compressed?token=" !in url) {
|
||||||
|
url
|
||||||
|
} else {
|
||||||
|
"http://mangafox.me/media/logo.png"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private data class ListValue(val name: String, val value: String) {
|
private data class ListValue(val name: String, val value: String) {
|
||||||
override fun toString(): String = name
|
override fun toString(): String = name
|
||||||
|
|
Loading…
Reference in a new issue