Ler Manga: Filter out empty page URLs (#680)
This commit is contained in:
parent
5325cad42d
commit
a1d4f70db4
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Ler Mangá'
|
extName = 'Ler Mangá'
|
||||||
extClass = '.LerManga'
|
extClass = '.LerManga'
|
||||||
extVersionCode = 5
|
extVersionCode = 6
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,12 +162,13 @@ class LerManga : ParsedHttpSource() {
|
||||||
.replace(PAGES_VARIABLE_REGEX, "")
|
.replace(PAGES_VARIABLE_REGEX, "")
|
||||||
.substringBeforeLast(";")
|
.substringBeforeLast(";")
|
||||||
.let { json.decodeFromString<List<String>>(it) }
|
.let { json.decodeFromString<List<String>>(it) }
|
||||||
|
.filter { it.isNotBlank() }
|
||||||
.mapIndexed { index, imageUrl ->
|
.mapIndexed { index, imageUrl ->
|
||||||
Page(index, document.location(), imageUrl)
|
Page(index, imageUrl = imageUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun imageUrlParse(document: Document) = ""
|
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException()
|
||||||
|
|
||||||
override fun imageRequest(page: Page): Request {
|
override fun imageRequest(page: Page): Request {
|
||||||
val newHeaders = headersBuilder()
|
val newHeaders = headersBuilder()
|
||||||
|
|
Loading…
Reference in New Issue