From 7ab0225a4e2df0ce381a2fc517618245a6517c52 Mon Sep 17 00:00:00 2001 From: Thomas Amland Date: Mon, 21 Oct 2024 17:08:33 +0200 Subject: [PATCH] exclude podcasts from save play queue --- src/shared/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index ad02477..a11f12d 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -323,10 +323,10 @@ export class API { } async savePlayQueue(tracks: Track[], currentTrack: Track, currentTime: number) { - const tracksIds = tracks.filter(track => !track.isStream).map(track => track.id) + const tracksIds = tracks.filter(track => !track.isStream && !track.isPodcast).map(track => track.id) const params = { id: tracksIds, - current: currentTrack.isStream ? null : currentTrack.id, + current: !currentTrack.isStream && !currentTrack.isPodcast ? currentTrack.id : undefined, position: Math.round(currentTime * 1000), } try {