Ler Manga: Escape HTML entities in titles (#211)

This commit is contained in:
beerpsi 2024-01-13 14:03:56 +07:00 committed by Draff
parent 9d74ec6b34
commit c6276c8a7d
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -4,6 +4,7 @@ import eu.kanade.tachiyomi.source.model.SManga
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.jsoup.Jsoup
import org.jsoup.nodes.Entities
@Serializable
data class LmMangaDto(
@ -14,7 +15,7 @@ data class LmMangaDto(
) {
fun toSManga(): SManga = SManga.create().apply {
title = this@LmMangaDto.title.rendered
title = Entities.unescape(this@LmMangaDto.title.rendered)
thumbnail_url = "${LerManga.IMG_CDN_URL}/${slug.first().uppercase()}/$slug/capa.jpg"
description = content?.rendered?.let { Jsoup.parseBodyFragment(it) }?.text()?.trim()
genre = embedded?.wpTerm.orEmpty().flatten()