mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
Mangatown - longstrip parsing (#721)
This commit is contained in:
parent
6c91829cb2
commit
b90dc2a8c3
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Mangatown'
|
||||
extClass = '.Mangatown'
|
||||
extVersionCode = 6
|
||||
extVersionCode = 7
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -122,9 +122,18 @@ class Mangatown : ParsedHttpSource() {
|
||||
}
|
||||
}
|
||||
|
||||
// check for paged first, then try longstrip
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
return document.select("select#top_chapter_list ~ div.page_select option:not(:contains(featured))").mapIndexed { i, element ->
|
||||
Page(i, element.attr("value").substringAfter("com"))
|
||||
return document.select("select#top_chapter_list ~ div.page_select option:not(:contains(featured))").let { elements ->
|
||||
if (elements.isNotEmpty()) {
|
||||
elements.mapIndexed { i, e ->
|
||||
Page(i, e.attr("value").substringAfter("com"))
|
||||
}
|
||||
} else {
|
||||
document.select("#viewer .image").mapIndexed { i, e ->
|
||||
Page(i, "", e.attr("abs:src"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user