diff --git a/src/all/komga/CHANGELOG.md b/src/all/komga/CHANGELOG.md index 3b0737541..a8da2a03b 100644 --- a/src/all/komga/CHANGELOG.md +++ b/src/all/komga/CHANGELOG.md @@ -1,3 +1,11 @@ +## 1.2.39 + +Minimum Komga version required: `0.151.0` + +### Features + +* Prepend series name in front of books within readlists + ## 1.2.38 Minimum Komga version required: `0.113.0` diff --git a/src/all/komga/build.gradle b/src/all/komga/build.gradle index 353c0b800..7f38648b2 100644 --- a/src/all/komga/build.gradle +++ b/src/all/komga/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Komga' pkgNameSuffix = 'all.komga' extClass = '.KomgaFactory' - extVersionCode = 38 + extVersionCode = 39 } dependencies { 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 3360f8d2a..c0a30a8c2 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 @@ -213,7 +213,7 @@ open class Komga(suffix: String = "") : ConfigurableSource, HttpSource() { val r = page.mapIndexed { index, book -> SChapter.create().apply { chapter_number = if (!response.fromReadList()) book.metadata.numberSort else index + 1F - name = "${if (!response.fromReadList()) "${book.metadata.number} - " else ""}${book.metadata.title} (${book.size})" + name = "${if (!response.fromReadList()) "${book.metadata.number} - " else "${book.seriesTitle} ${book.metadata.number}: "}${book.metadata.title} (${book.size})" url = "$baseUrl/api/v1/books/${book.id}" scanlator = book.metadata.authors.groupBy({ it.role }, { it.name })["translator"]?.joinToString() date_upload = book.metadata.releaseDate?.let { parseDate(it) } 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 94934be6f..aef1af9cf 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 @@ -60,6 +60,7 @@ data class BookMetadataAggregationDto( data class BookDto( val id: String, val seriesId: String, + val seriesTitle: String, val name: String, val number: Float, val created: String?,