feat(komga): display book translators as chapter scanlator (#10099)
This commit is contained in:
parent
b210902b2c
commit
d718c8a10f
|
@ -1,3 +1,11 @@
|
||||||
|
## 1.2.35
|
||||||
|
|
||||||
|
Minimum Komga version required: `0.113.0`
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Display the Translators of a book in the scanlator chapter field
|
||||||
|
|
||||||
## 1.2.34
|
## 1.2.34
|
||||||
|
|
||||||
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 = 34
|
extVersionCode = 35
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -215,6 +215,7 @@ open class Komga(suffix: String = "") : ConfigurableSource, HttpSource() {
|
||||||
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.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()
|
||||||
date_upload = book.metadata.releaseDate?.let { parseDate(it) }
|
date_upload = book.metadata.releaseDate?.let { parseDate(it) }
|
||||||
?: parseDateTime(book.fileLastModified)
|
?: parseDateTime(book.fileLastModified)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue