RizzComic: handle edge case for slugs (#8658)
* RizzComic: handle edge case for slugs * use trim
This commit is contained in:
parent
fe5b10916f
commit
a56eb29dec
@ -3,7 +3,7 @@ ext {
|
||||
extClass = '.RizzComic'
|
||||
themePkg = 'mangathemesia'
|
||||
baseUrl = 'https://rizzfables.com'
|
||||
overrideVersionCode = 11
|
||||
overrideVersionCode = 12
|
||||
isNsfw = false
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user