Skip to content

Commit

Permalink
add back mistakenly deleted line
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jun 25, 2024
1 parent 7793fd8 commit 396547d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/mediaprovider/helpers/other.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
func GetSimilarSongsFallback(mp mediaprovider.MediaProvider, track *mediaprovider.Track, count int) []*mediaprovider.Track {
var tracks []*mediaprovider.Track
if len(track.ArtistIDs) > 0 {
tracks, _ = mp.GetSimilarTracks(track.ArtistIDs[0], count)
}
if len(tracks) == 0 {
tracks, _ = mp.GetRandomTracks(track.Genre, count)
Expand Down

0 comments on commit 396547d

Please sign in to comment.