Skip to content

Commit

Permalink
Ensure single track has media
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Jun 23, 2024
1 parent 8f1f835 commit 59d0009
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private async Task ProcessQueryAsync()
);

// Single track
if (result.Tracks.Count == 1)
if (result.Tracks.Count == 1 && result.Tracks[0].Media is not null)
{
var track = result.Tracks.Single();

Expand Down

0 comments on commit 59d0009

Please sign in to comment.