diff --git a/Cassette/Commands/ControlsCommandGroup.cs b/Cassette/Commands/ControlsCommandGroup.cs index 4a79fcb..46b1b85 100644 --- a/Cassette/Commands/ControlsCommandGroup.cs +++ b/Cassette/Commands/ControlsCommandGroup.cs @@ -40,7 +40,13 @@ public sealed class ControlsCommandGroup( return Result.FromSuccess(); } - var loadResult = await audioService.Tracks.LoadTracksAsync(query, TrackSearchMode.None); + if (File.Exists(query)) + { + var track = await audioService.Tracks.LoadTrackAsync(Path.GetFullPath(query), TrackSearchMode.None); + return await PlayTrackResultAsync(player, track); + } + + var loadResult = await audioService.Tracks.LoadTracksAsync(query, TrackSearchMode.YouTube); if (!loadResult.IsSuccess) { return await feedbackService.SendContextualMessageResult(