Ler Manga: Filter out empty page URLs (#680)

This commit is contained in:
beerpsi 2024-01-27 11:49:44 +07:00 committed by Draff
parent 5325cad42d
commit a1d4f70db4
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Ler Mangá'
extClass = '.LerManga'
extVersionCode = 5
extVersionCode = 6
isNsfw = true
}

View File

@ -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()