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