Skip to content

Commit

Permalink
fix: also set itemid for first track in queue
Browse files Browse the repository at this point in the history
  • Loading branch information
leinelissen committed Jun 18, 2023
1 parent 4a43583 commit f540424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utility/JellyfinApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ export async function sendPlaybackEvent(path: string, credentials: Credentials)
PositionTicks: position * 1_000_000,
PlaybackRate: 1,
PlayMethod: 'transcode',
MediaSourceId: track ? queue[track].backendId : null,
ItemId: track ? queue[track].backendId : null,
MediaSourceId: track !== null ? queue[track].backendId : null,
ItemId: track !== null ? queue[track].backendId : null,
CanSeek: true,
PlaybackStartTimeTicks: null,
};
Expand Down

0 comments on commit f540424

Please sign in to comment.