feat(all/jellyfin): Mark status as completed for movies (#3250)
This commit is contained in:
parent
f012b19885
commit
354d8bd8dc
@ -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"
|
||||||
|
@ -114,8 +114,13 @@ data class ItemDto(
|
|||||||
}
|
}
|
||||||
genre = genres?.joinToString(", ")
|
genre = genres?.joinToString(", ")
|
||||||
author = studios?.joinToString(", ") { it.name }
|
author = studios?.joinToString(", ") { it.name }
|
||||||
|
|
||||||
|
if (type == "Movie") {
|
||||||
|
status = SAnime.COMPLETED
|
||||||
|
} else {
|
||||||
status = seriesStatus.parseStatus()
|
status = seriesStatus.parseStatus()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun String?.parseStatus(): Int = when (this) {
|
private fun String?.parseStatus(): Int = when (this) {
|
||||||
"Ended" -> SAnime.COMPLETED
|
"Ended" -> SAnime.COMPLETED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user