Ler Manga: Escape HTML entities in titles (#211)
This commit is contained in:
parent
9d74ec6b34
commit
c6276c8a7d
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Ler Mangá'
|
extName = 'Ler Mangá'
|
||||||
pkgNameSuffix = 'pt.lermanga'
|
pkgNameSuffix = 'pt.lermanga'
|
||||||
extClass = '.LerManga'
|
extClass = '.LerManga'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import kotlinx.serialization.SerialName
|
import kotlinx.serialization.SerialName
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
import org.jsoup.Jsoup
|
import org.jsoup.Jsoup
|
||||||
|
import org.jsoup.nodes.Entities
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class LmMangaDto(
|
data class LmMangaDto(
|
||||||
|
@ -14,7 +15,7 @@ data class LmMangaDto(
|
||||||
) {
|
) {
|
||||||
|
|
||||||
fun toSManga(): SManga = SManga.create().apply {
|
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"
|
thumbnail_url = "${LerManga.IMG_CDN_URL}/${slug.first().uppercase()}/$slug/capa.jpg"
|
||||||
description = content?.rendered?.let { Jsoup.parseBodyFragment(it) }?.text()?.trim()
|
description = content?.rendered?.let { Jsoup.parseBodyFragment(it) }?.text()?.trim()
|
||||||
genre = embedded?.wpTerm.orEmpty().flatten()
|
genre = embedded?.wpTerm.orEmpty().flatten()
|
||||||
|
|
Loading…
Reference in New Issue