Skip to content

Commit

Permalink
fix: play command (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uo1428 authored Oct 6, 2024
1 parent 41012e3 commit b82acde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/play/play.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class PlayItemCommand {
return;
}

const tracks = await item.toTracks(this.jellyfinSearchService);
const tracks = await (await item.toTracks(this.jellyfinSearchService)).reverse();
this.logger.debug(`Extracted ${tracks.length} tracks from the search item`);
const reducedDuration = tracks.reduce(
(sum, item) => sum + item.duration,
Expand Down

0 comments on commit b82acde

Please sign in to comment.