Skip to content

Commit

Permalink
Specify fields in resumePlayback() API request
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Nov 29, 2024
1 parent e60c2a4 commit 79a97c3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import org.jellyfin.sdk.api.client.extensions.tvShowsApi
import org.jellyfin.sdk.api.client.extensions.userLibraryApi
import org.jellyfin.sdk.model.api.BaseItemDto
import org.jellyfin.sdk.model.api.BaseItemKind
import org.jellyfin.sdk.model.api.ItemFields
import org.jellyfin.sdk.model.api.ItemFilter
import org.jellyfin.sdk.model.api.ItemSortBy
import org.jellyfin.sdk.model.api.MediaType
Expand Down Expand Up @@ -241,6 +242,12 @@ fun FullDetailsFragment.resumePlayback() {
includeItemTypes = setOf(BaseItemKind.EPISODE),
recursive = true,
filters = setOf(ItemFilter.IS_UNPLAYED),
fields = setOf(
ItemFields.MEDIA_SOURCES,
ItemFields.MEDIA_STREAMS,
ItemFields.CHAPTERS,
ItemFields.TRICKPLAY,
),
sortBy = setOf(
ItemSortBy.PARENT_INDEX_NUMBER,
ItemSortBy.INDEX_NUMBER,
Expand Down

0 comments on commit 79a97c3

Please sign in to comment.