diff --git a/src/all/komga/CHANGELOG.md b/src/all/komga/CHANGELOG.md index 9300d5618..0bb312850 100644 --- a/src/all/komga/CHANGELOG.md +++ b/src/all/komga/CHANGELOG.md @@ -1,3 +1,12 @@ +## 1.2.19 + +Minimum Komga version required: `0.68.0` + +### Features + +* display Series authors +* display Series summary from books if no summary exists for Series + ## 1.2.18 Minimum Komga version required: `0.63.2` diff --git a/src/all/komga/build.gradle b/src/all/komga/build.gradle index 848244dd7..8b065d870 100644 --- a/src/all/komga/build.gradle +++ b/src/all/komga/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Komga' pkgNameSuffix = 'all.komga' extClass = '.KomgaFactory' - extVersionCode = 18 + extVersionCode = 19 libVersion = '1.2' } diff --git a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt index 93437e33e..396bb829c 100644 --- a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt +++ b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt @@ -216,7 +216,11 @@ open class Komga(suffix: String = "") : ConfigurableSource, HttpSource() { else -> SManga.UNKNOWN } genre = (metadata.genres + metadata.tags).joinToString(", ") - description = metadata.summary + description = metadata.summary.ifBlank { booksMetadata.summary } + booksMetadata.authors.groupBy { it.role }.let { + author = it["writer"]?.map { it.name }?.distinct()?.joinToString() + artist = it["penciller"]?.map { it.name }?.distinct()?.joinToString() + } } private fun parseDate(date: String?): Long = diff --git a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/dto/Dto.kt b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/dto/Dto.kt index 8803ea769..efb77222d 100644 --- a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/dto/Dto.kt +++ b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/dto/Dto.kt @@ -13,7 +13,8 @@ data class SeriesDto( val lastModified: String?, val fileLastModified: String, val booksCount: Int, - val metadata: SeriesMetadataDto + val metadata: SeriesMetadataDto, + val booksMetadata: BookMetadataAggregationDto ) data class SeriesMetadataDto( @@ -38,6 +39,16 @@ data class SeriesMetadataDto( val tagsLock: Boolean ) +data class BookMetadataAggregationDto( + val authors: List = emptyList(), + val releaseDate: String?, + val summary: String, + val summaryNumber: String, + + val created: String, + val lastModified: String +) + data class BookDto( val id: String, val seriesId: String,