feat(all/jellyfin): Mark status as completed for movies (#3250)

This commit is contained in:
Rohit Mane 2024-05-22 23:55:21 +05:30 committed by GitHub
parent f012b19885
commit 354d8bd8dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Jellyfin' extName = 'Jellyfin'
extClass = '.JellyfinFactory' extClass = '.JellyfinFactory'
extVersionCode = 14 extVersionCode = 15
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -114,7 +114,12 @@ data class ItemDto(
} }
genre = genres?.joinToString(", ") genre = genres?.joinToString(", ")
author = studios?.joinToString(", ") { it.name } author = studios?.joinToString(", ") { it.name }
status = seriesStatus.parseStatus()
if (type == "Movie") {
status = SAnime.COMPLETED
} else {
status = seriesStatus.parseStatus()
}
} }
private fun String?.parseStatus(): Int = when (this) { private fun String?.parseStatus(): Int = when (this) {