parent
aa8227e0a4
commit
b332a17b22
|
@ -12,4 +12,6 @@ class PerfScan : HeanCms("Perf Scan", "https://perf-scan.fr", "fr") {
|
|||
|
||||
override val coverPath: String = ""
|
||||
override val useNewQueryEndpoint = true
|
||||
|
||||
override val slugStrategy = SlugStrategy.ID
|
||||
}
|
||||
|
|
|
@ -405,13 +405,13 @@ abstract class HeanCms(
|
|||
if (useNewQueryEndpoint) {
|
||||
return result.seasons.orEmpty()
|
||||
.flatMap { it.chapters.orEmpty() }
|
||||
.filterNot { it.price == 1 }
|
||||
.filter { it.price == 0 }
|
||||
.map { it.toSChapter(result.slug, mangaSubDirectory, dateFormat, slugStrategy) }
|
||||
.filter { it.date_upload <= currentTimestamp }
|
||||
}
|
||||
|
||||
return result.chapters.orEmpty()
|
||||
.filterNot { it.price == 1 }
|
||||
.filter { it.price == 0 }
|
||||
.map { it.toSChapter(result.slug, mangaSubDirectory, dateFormat, slugStrategy) }
|
||||
.filter { it.date_upload <= currentTimestamp }
|
||||
.reversed()
|
||||
|
@ -603,7 +603,7 @@ abstract class HeanCms(
|
|||
SortProperty(intl.sortByTitle, "title"),
|
||||
SortProperty(intl.sortByViews, "total_views"),
|
||||
SortProperty(intl.sortByLatest, "latest"),
|
||||
SortProperty(intl.sortByRecentlyAdded, "recently_added"),
|
||||
SortProperty(intl.sortByCreatedAt, "created_at"),
|
||||
)
|
||||
|
||||
protected open fun getGenreList(): List<Genre> = emptyList()
|
||||
|
|
|
@ -9,7 +9,7 @@ class HeanCmsGenerator : ThemeSourceGenerator {
|
|||
|
||||
override val themeClass = "HeanCms"
|
||||
|
||||
override val baseVersionCode: Int = 18
|
||||
override val baseVersionCode: Int = 19
|
||||
|
||||
override val sources = listOf(
|
||||
SingleLang("Glorious Scan", "https://gloriousscan.com", "pt-BR", overrideVersionCode = 17),
|
||||
|
|
|
@ -64,10 +64,10 @@ class HeanCmsIntl(lang: String) {
|
|||
else -> "Latest"
|
||||
}
|
||||
|
||||
val sortByRecentlyAdded: String = when (availableLang) {
|
||||
val sortByCreatedAt: String = when (availableLang) {
|
||||
BRAZILIAN_PORTUGUESE -> "Data de criação"
|
||||
SPANISH -> "Añadido recientemente"
|
||||
else -> "Recently added"
|
||||
SPANISH -> "Fecha de creación"
|
||||
else -> "Created at"
|
||||
}
|
||||
|
||||
val filterWarning: String = when (availableLang) {
|
||||
|
|
Loading…
Reference in New Issue