Skip to content

Commit

Permalink
feat: better logging when no playable formats are available
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Jul 31, 2024
1 parent 3d335b0 commit 68b0765
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions player/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ func (p *Player) NewStream(spotId librespot.SpotifyId, bitrate int, mediaPositio

trackMeta.File = append(trackMeta.File, alt.File...)
}

log.Warnf("original track has no formats, alternatives have a total of %d", len(trackMeta.File))
}

file = selectBestMediaFormat(trackMeta.File, bitrate)
Expand Down

0 comments on commit 68b0765

Please sign in to comment.