Skip to content

Commit

Permalink
fix saving podcasts in queue
Browse files Browse the repository at this point in the history
  • Loading branch information
tamland committed Oct 22, 2024
1 parent d6551d1 commit 50cb49b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 && !track.isPodcast).map(track => track.id)
const tracksIds = tracks.filter(track => !track.isStream).map(track => track.id)
const params = {
id: tracksIds,
current: !currentTrack.isStream && !currentTrack.isPodcast ? currentTrack.id : undefined,
current: !currentTrack.isStream ? currentTrack.id : undefined,
position: Math.round(currentTime * 1000),
}
try {
Expand Down Expand Up @@ -606,7 +606,7 @@ export class API {
trackCount: episodes.length,
updatedAt: max(map(episodes, 'publishDate')),
tracks: episodes.map((item: any, index: number): Track & PodcastEpisode => ({
id: item.id,
id: item.streamId,
title: item.title,
duration: item.duration,
favourite: false,
Expand Down

0 comments on commit 50cb49b

Please sign in to comment.