Skip to content

Commit

Permalink
exclude podcasts from save play queue
Browse files Browse the repository at this point in the history
  • Loading branch information
tamland committed Oct 21, 2024
1 parent c5b166e commit 7ab0225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7ab0225

Please sign in to comment.