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:
parent
026666bc38
commit
0cec461ff8
@ -2,7 +2,7 @@ ext {
|
||||
extName = 'PhenixScans'
|
||||
extClass = '.PhenixScans'
|
||||
baseUrl = 'https://phenix-scans.com'
|
||||
extVersionCode = 34
|
||||
extVersionCode = 35
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.PoseidonScans'
|
||||
baseUrl = 'https://poseidonscans.fr'
|
||||
overrideVersionCode = 0
|
||||
extVersionCode = 43
|
||||
extVersionCode = 44
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user