fix (Poseidonscans/PhenixScans) : Update Poseidon Scans and Phenix Scans (#9143)

* fix (PhenixScans): correct API base URL and improve chapter naming format in PoseidonScans

* update version codes
This commit is contained in:
Aurel 2025-06-08 22:13:02 -04:00 committed by Draff
parent 026666bc38
commit 0cec461ff8
Signed by: Draff
GPG Key ID: E8A89F3211677653
4 changed files with 7 additions and 4 deletions

View File

@ -2,7 +2,7 @@ ext {
extName = 'PhenixScans'
extClass = '.PhenixScans'
baseUrl = 'https://phenix-scans.com'
extVersionCode = 34
extVersionCode = 35
isNsfw = false
}

View File

@ -18,7 +18,7 @@ import java.util.Locale
class PhenixScans : HttpSource() {
override val baseUrl = "https://phenix-scans.com"
private val apiBaseUrl = "https://api.phenix-scans.com"
private val apiBaseUrl = "https://phenix-scans.com/api"
override val lang = "fr"
override val name = "Phenix Scans"
override val supportsLatest = true

View File

@ -3,7 +3,7 @@ ext {
extClass = '.PoseidonScans'
baseUrl = 'https://poseidonscans.fr'
overrideVersionCode = 0
extVersionCode = 43
extVersionCode = 44
isNsfw = false
}

View File

@ -392,7 +392,10 @@ class PoseidonScans : HttpSource() {
?.mapNotNull { ch ->
val chapterNumberString = ch.number.toString().removeSuffix(".0")
SChapter.create().apply {
name = ch.title?.takeIf { it.isNotBlank() } ?: "Chapitre $chapterNumberString"
val baseName = "Chapitre $chapterNumberString"
name = ch.title?.trim()?.takeIf { it.isNotBlank() }
?.let { title -> "$baseName - $title" }
?: baseName
setUrlWithoutDomain("/serie/${mangaDto.slug}/chapter/$chapterNumberString")
date_upload = parseIsoDate(ch.createdAt)
chapter_number = ch.number