mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-22 10:26:33 +02:00
fix inverted condition for progress scrobble after submission
This commit is contained in:
@@ -185,9 +185,9 @@ export const useScrobble = () => {
|
|||||||
// Because Jellyfin uses the stop event for submission, we need to send another
|
// Because Jellyfin uses the stop event for submission, we need to send another
|
||||||
// progress update after submission so that the song continues to progress in the dashboard
|
// progress update after submission so that the song continues to progress in the dashboard
|
||||||
const shouldSendProgress =
|
const shouldSendProgress =
|
||||||
song._serverType !== ServerType.JELLYFIN ||
|
song._serverType === ServerType.JELLYFIN &&
|
||||||
activeSong?._uniqueId !== song._uniqueId ||
|
activeSong?._uniqueId === song._uniqueId &&
|
||||||
status !== PlayerStatus.PLAYING;
|
status === PlayerStatus.PLAYING;
|
||||||
|
|
||||||
if (!shouldSendProgress) {
|
if (!shouldSendProgress) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user