IkigaiMangas: Add chapter title and update default base url (#11103)

add chapter title
This commit is contained in:
bapeey 2025-10-17 12:36:24 -05:00 committed by Draff
parent d7241034bc
commit a78b2624da
Signed by: Draff
GPG Key ID: E8A89F3211677653
3 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Ikigai Mangas'
extClass = '.IkigaiMangas'
extVersionCode = 26
extVersionCode = 27
isNsfw = true
}

View File

@ -38,7 +38,7 @@ class IkigaiMangas : HttpSource(), ConfigurableSource {
else -> preferences.prefBaseUrl
}
private val defaultBaseUrl: String = "https://visualikigai.eurofiyati.online"
private val defaultBaseUrl: String = "https://visualikigai.tutorialesminecraft.com"
private val fetchedDomainUrl: String by lazy {
if (!preferences.fetchDomainPref()) return@lazy preferences.prefBaseUrl

View File

@ -88,11 +88,17 @@ class PayloadChaptersDto(
class ChapterDto(
private val id: Long,
private val name: String,
private val title: String? = null,
@SerialName("published_at") val date: String,
) {
fun toSChapter(dateFormat: SimpleDateFormat) = SChapter.create().apply {
url = "/capitulo/$id/"
name = "Capítulo ${this@ChapterDto.name}"
name = buildString {
append("Capítulo ${this@ChapterDto.name}")
title?.let {
append(": $it")
}
}
date_upload = try {
dateFormat.parse(date)?.time ?: 0L
} catch (e: Exception) {