Luscious added Chapter number as prefix (#9392)

* Added missing sort option and prefix chapter num

* Update LusciousGenerator.kt
This commit is contained in:
jopejoe1 2021-10-09 01:13:34 +13:00 committed by GitHub
parent c286b13f0e
commit 119c81ef2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -261,9 +261,9 @@ abstract class Luscious(
"-1" -> it["url_to_original"].asString
else -> it["thumbnails"][getResolutionPref()?.toInt()!!]["url"].asString
}
chapter.name = it["title"].asString
chapter.date_upload = "${it["created"].asLong}000".toLong()
chapter.chapter_number = it["position"].asInt.toFloat()
chapter.name = chapter.chapter_number.toInt().toString() + " - " + it["title"].asString
chapter.date_upload = "${it["created"].asLong}000".toLong()
chapters.add(chapter)
}
if (nextPage) {
@ -550,6 +550,7 @@ abstract class Luscious(
SelectFilterOption("Date - Trending", "date_trending"),
SelectFilterOption("Date - Featured", "date_featured"),
SelectFilterOption("Date - Last Viewed", "date_last_interaction"),
SelectFilterOption("Other - Search Score", "search_score"),
).forEach {
sortOptions.add(it)
}

View File

@ -9,7 +9,7 @@ class LusciousGenerator : ThemeSourceGenerator {
override val themeClass = "Luscious"
override val baseVersionCode: Int = 11
override val baseVersionCode: Int = 12
override val sources = listOf(
MultiLang("Luscious", "https://www.luscious.net", listOf("en", "ja", "es", "it", "de", "fr", "zh", "ko", "other", "pt-BR", "th", "all"), isNsfw = true, className = "LusciousFactory", overrideVersionCode = 2),