feat: prepend series title in front of book name for read lists (#10831)
This commit is contained in:
parent
643d072d5b
commit
2a793c16ac
|
@ -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
|
## 1.2.38
|
||||||
|
|
||||||
Minimum Komga version required: `0.113.0`
|
Minimum Komga version required: `0.113.0`
|
||||||
|
|
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Komga'
|
extName = 'Komga'
|
||||||
pkgNameSuffix = 'all.komga'
|
pkgNameSuffix = 'all.komga'
|
||||||
extClass = '.KomgaFactory'
|
extClass = '.KomgaFactory'
|
||||||
extVersionCode = 38
|
extVersionCode = 39
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -213,7 +213,7 @@ open class Komga(suffix: String = "") : ConfigurableSource, HttpSource() {
|
||||||
val r = page.mapIndexed { index, book ->
|
val r = page.mapIndexed { index, book ->
|
||||||
SChapter.create().apply {
|
SChapter.create().apply {
|
||||||
chapter_number = if (!response.fromReadList()) book.metadata.numberSort else index + 1F
|
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}"
|
url = "$baseUrl/api/v1/books/${book.id}"
|
||||||
scanlator = book.metadata.authors.groupBy({ it.role }, { it.name })["translator"]?.joinToString()
|
scanlator = book.metadata.authors.groupBy({ it.role }, { it.name })["translator"]?.joinToString()
|
||||||
date_upload = book.metadata.releaseDate?.let { parseDate(it) }
|
date_upload = book.metadata.releaseDate?.let { parseDate(it) }
|
||||||
|
|
|
@ -60,6 +60,7 @@ data class BookMetadataAggregationDto(
|
||||||
data class BookDto(
|
data class BookDto(
|
||||||
val id: String,
|
val id: String,
|
||||||
val seriesId: String,
|
val seriesId: String,
|
||||||
|
val seriesTitle: String,
|
||||||
val name: String,
|
val name: String,
|
||||||
val number: Float,
|
val number: Float,
|
||||||
val created: String?,
|
val created: String?,
|
||||||
|
|
Loading…
Reference in New Issue