RizzComic: handle edge case for slugs (#8658)

* RizzComic: handle edge case for slugs

* use trim
This commit is contained in:
AwkwardPeak7 2025-04-28 18:17:09 +05:00 committed by Draff
parent fe5b10916f
commit a56eb29dec
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.RizzComic'
themePkg = 'mangathemesia'
baseUrl = 'https://rizzfables.com'
overrideVersionCode = 11
overrideVersionCode = 12
isNsfw = false
}

View File

@ -110,9 +110,11 @@ class RizzComic : MangaThemesiaAlt(
@SerialName("genre_id") val genres: String? = null,
) {
val slug get() = title.trim().lowercase()
.replace("'", "")
.replace(slugRegex, "-")
.replace("-s-", "s-")
.replace("-ll-", "ll-")
.trim('-')
val genreIds get() = genres?.split(",")?.map(String::trim)