mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +00:00
fix: use finished image url for PosterItems
This commit is contained in:
@@ -150,9 +150,18 @@ data class PosterItem(
|
|||||||
else -> throw IllegalArgumentException("Invalid type: $type")
|
else -> throw IllegalArgumentException("Invalid type: $type")
|
||||||
}
|
}
|
||||||
val imageUrl: String = when (type) {
|
val imageUrl: String = when (type) {
|
||||||
BaseItemKind.MOVIE -> movie!!.imageUrlPrefix
|
BaseItemKind.MOVIE -> JellyfinImageHelper.finishImageUrl(
|
||||||
BaseItemKind.EPISODE -> episode!!.imageUrlPrefix
|
prefixImageUrl = movie!!.imageUrlPrefix,
|
||||||
BaseItemKind.SERIES -> series!!.imageUrlPrefix
|
imageType = ImageType.PRIMARY
|
||||||
|
)
|
||||||
|
BaseItemKind.EPISODE -> JellyfinImageHelper.finishImageUrl(
|
||||||
|
prefixImageUrl = episode!!.imageUrlPrefix,
|
||||||
|
imageType = ImageType.PRIMARY
|
||||||
|
)
|
||||||
|
BaseItemKind.SERIES -> JellyfinImageHelper.finishImageUrl(
|
||||||
|
prefixImageUrl = series!!.imageUrlPrefix,
|
||||||
|
imageType = ImageType.PRIMARY
|
||||||
|
)
|
||||||
else -> throw IllegalArgumentException("Invalid type: $type")
|
else -> throw IllegalArgumentException("Invalid type: $type")
|
||||||
}
|
}
|
||||||
fun watched() = when (type) {
|
fun watched() = when (type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user