diff --git a/src/all/lanraragi/build.gradle b/src/all/lanraragi/build.gradle index 22521705a..b265dfcc5 100644 --- a/src/all/lanraragi/build.gradle +++ b/src/all/lanraragi/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'LANraragi' extClass = '.LANraragiFactory' - extVersionCode = 17 + extVersionCode = 18 } apply from: "$rootDir/common.gradle" diff --git a/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANmodels.kt b/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANmodels.kt index 5613bb74a..928bd1c5b 100644 --- a/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANmodels.kt +++ b/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANmodels.kt @@ -7,6 +7,7 @@ data class Archive( val arcid: String, val isnew: String, val tags: String?, + val summary: String?, val title: String, ) @@ -25,7 +26,6 @@ data class ArchiveSearchResult( @Serializable data class Category( val id: String, - val last_used: String, val name: String, val pinned: String, ) diff --git a/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt b/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt index a2580107e..37db40fd6 100644 --- a/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt +++ b/src/all/lanraragi/src/eu/kanade/tachiyomi/extension/all/lanraragi/LANraragi.kt @@ -242,7 +242,7 @@ open class LANraragi(private val suffix: String = "") : ConfigurableSource, Unme private fun archiveToSManga(archive: Archive) = SManga.create().apply { url = "/reader?id=${archive.arcid}" title = archive.title - description = archive.title + description = if (archive.summary.isNullOrBlank()) archive.title else archive.summary thumbnail_url = getThumbnailUri(archive.arcid) genre = archive.tags?.replace(",", ", ") artist = getArtist(archive.tags) @@ -406,12 +406,10 @@ open class LANraragi(private val suffix: String = "") : ConfigurableSource, Unme private fun getCategoryPairs(categories: List): Array> { // Empty pair to disable. Sort by pinned status then name for convenience. - // Web client sort is pinned > last_used but reflects between page changes. val pin = "\uD83D\uDCCC " - // Maintain categories sync for next FilterList reset. If there's demand for it, it's now - // possible to sort by last_used similar to the web client. Maybe an option toggle? + // Maintain categories sync for next FilterList reset. getCategories() return listOf(Pair("", ""))