Skip to content

Commit

Permalink
SongDownloader - Fix #32 didn't bind TrackItemCache to itself
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Jun 22, 2024
1 parent 30d2188 commit f2470a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/SongDownloader/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const onPlaylist = async (playlistUUID: ItemId) => {
};

const queueMediaIds = (mediaIds: ItemId[]) => {
Promise.all(mediaIds.map(TrackItemCache.ensure))
Promise.all(mediaIds.map(TrackItemCache.ensure.bind(TrackItemCache)))
.then((tracks) => tracks.filter((item) => item !== undefined))
.then(downloadItems);
};
Expand Down

0 comments on commit f2470a6

Please sign in to comment.