Skip to content

Commit

Permalink
Load fresh item data in AudioTrackQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Oct 29, 2022
1 parent 2b48e39 commit 1301cb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playback/jellyfin/src/main/kotlin/queue/AudioTrackQueue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import org.jellyfin.playback.core.queue.PagedQueue
import org.jellyfin.playback.core.queue.item.QueueEntry
import org.jellyfin.playback.jellyfin.queue.item.BaseItemDtoUserQueueEntry
import org.jellyfin.sdk.api.client.ApiClient
import org.jellyfin.sdk.api.client.extensions.userLibraryApi
import org.jellyfin.sdk.model.api.BaseItemDto
import org.jellyfin.sdk.model.api.BaseItemKind

Expand All @@ -19,6 +20,7 @@ class AudioTrackQueue(
// We only have a single item
if (offset > 0) return emptyList()

val item by api.userLibraryApi.getItem(itemId = item.id)
return listOf(BaseItemDtoUserQueueEntry.build(api, item))
}
}

0 comments on commit 1301cb9

Please sign in to comment.