mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 07:11:52 +01:00
Fix extra (advertisement) page being added in Mangahere. (#1052)
This commit is contained in:
parent
d69730a333
commit
2060b5cd34
@ -183,8 +183,10 @@ class Mangahere : ParsedHttpSource() {
|
|||||||
|
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
document.select("select.wid60").first()?.getElementsByTag("option")?.forEach {
|
document.select("select.wid60").first()?.getElementsByTag("option")?.forEach {
|
||||||
|
if (!it.attr("value").contains("featured.html")) {
|
||||||
pages.add(Page(pages.size, "http:" + it.attr("value")))
|
pages.add(Page(pages.size, "http:" + it.attr("value")))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
pages.getOrNull(0)?.imageUrl = imageUrlParse(document)
|
pages.getOrNull(0)?.imageUrl = imageUrlParse(document)
|
||||||
return pages
|
return pages
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user