Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDK to 1.0.0 release #462

Merged
merged 2 commits into from
Jul 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import org.jellyfin.sdk.model.api.SortOrder
import org.jellyfin.sdk.model.serializer.toUUID
import org.jellyfin.sdk.model.serializer.toUUIDOrNull
import timber.log.Timber
import java.util.UUID
import java.util.*

@Suppress("TooManyFunctions")
class LibraryBrowser(
Expand Down Expand Up @@ -367,15 +367,15 @@ class LibraryBrowser(

val isAlbum = item.albumId != null
val itemId = when {
item.imageTags.containsKey(ImageType.PRIMARY) -> item.id
item.imageTags?.containsKey(ImageType.PRIMARY) == true -> item.id
isAlbum -> item.albumId
else -> null
}
val primaryImageUrl = itemId?.let {
imageApi.getItemImageUrl(
itemId = itemId,
Maxr1998 marked this conversation as resolved.
Show resolved Hide resolved
imageType = ImageType.PRIMARY,
tag = if (isAlbum) item.albumPrimaryImageTag else item.imageTags[ImageType.PRIMARY],
tag = if (isAlbum) item.albumPrimaryImageTag else item.imageTags?.get(ImageType.PRIMARY),
Maxr1998 marked this conversation as resolved.
Show resolved Hide resolved
)
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object Dependencies {
const val room = "2.3.0"

// Network
const val jellyfinSdk = "1.0.0-beta.8"
const val jellyfinSdk = "1.0.0"
const val jellyfinSdkLocal = "latest-SNAPSHOT"
const val jellyfinSdkSnapshot = "master-SNAPSHOT"
const val jellyfinSdkSnapshotUnstable = "openapi-unstable-SNAPSHOT"
Expand Down