FlameComis: Fix altTitles (#10511)

This commit is contained in:
Creepler13 2025-09-13 16:05:46 +02:00 committed by Draff
parent ea50657f8a
commit 585e4e3b53
Signed by: Draff
GPG Key ID: E8A89F3211677653
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Flame Comics' extName = 'Flame Comics'
extClass = '.FlameComics' extClass = '.FlameComics'
extVersionCode = 43 extVersionCode = 44
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -91,7 +91,7 @@ class FlameComics : HttpSource() {
seriesList.filter { series -> seriesList.filter { series ->
val titles = mutableListOf(series.title) val titles = mutableListOf(series.title)
if (series.altTitles != null) { if (series.altTitles != null) {
titles += json.decodeFromString<List<String>>(series.altTitles) titles += series.altTitles
} }
titles.any { title -> titles.any { title ->
removeSpecialCharsRegex.replace( removeSpecialCharsRegex.replace(

View File

@ -67,7 +67,7 @@ class ChapterPageData(
@Serializable @Serializable
class Series( class Series(
val title: String, val title: String,
val altTitles: String?, val altTitles: List<String>?,
val description: String, val description: String,
val cover: String, val cover: String,
val type: String, val type: String,