Fix extra (advertisement) page being added in Mangahere. (#1052)
Cette révision appartient à :
Parent
d69730a333
révision
2060b5cd34
1 fichiers modifiés avec 3 ajouts et 1 suppressions
|
@ -183,7 +183,9 @@ class Mangahere : ParsedHttpSource() {
|
|||
|
||||
val pages = mutableListOf<Page>()
|
||||
document.select("select.wid60").first()?.getElementsByTag("option")?.forEach {
|
||||
pages.add(Page(pages.size, "http:" + it.attr("value")))
|
||||
if (!it.attr("value").contains("featured.html")) {
|
||||
pages.add(Page(pages.size, "http:" + it.attr("value")))
|
||||
}
|
||||
}
|
||||
pages.getOrNull(0)?.imageUrl = imageUrlParse(document)
|
||||
return pages
|
||||
|
|
Référencer dans un nouveau ticket