diff --git a/src/components/player/Player.tsx b/src/components/player/Player.tsx index 3120cdc..0b6e4cf 100644 --- a/src/components/player/Player.tsx +++ b/src/components/player/Player.tsx @@ -619,7 +619,7 @@ const Player = ({ currentEntryList, muted, children }: any, ref: any) => { (playerNumber: 1 | 2) => { ipcRenderer.send('current-song', playQueue.current); - if (config.serverType === Server.Jellyfin) { + if (config.serverType === Server.Jellyfin && playQueue.scrobble) { const currentSeek = playerNumber === 1 ? player1Ref.current.audioEl.current.currentTime diff --git a/src/hooks/usePlayerControls.ts b/src/hooks/usePlayerControls.ts index 00cc4c4..ee9d037 100644 --- a/src/hooks/usePlayerControls.ts +++ b/src/hooks/usePlayerControls.ts @@ -70,7 +70,7 @@ const usePlayerControls = ( playersRef.current.player2.audioEl.current.volume = 0; playersRef.current.player2.audioEl.current.pause(); - if (config.serverType === Server.Jellyfin) { + if (config.serverType === Server.Jellyfin && playQueue.scrobble) { apiController({ serverType: config.serverType, endpoint: 'scrobble', @@ -91,7 +91,7 @@ const usePlayerControls = ( playersRef.current.player1.audioEl.current.volume = 0; playersRef.current.player1.audioEl.current.pause(); - if (config.serverType === Server.Jellyfin) { + if (config.serverType === Server.Jellyfin && playQueue.scrobble) { apiController({ serverType: config.serverType, endpoint: 'scrobble',