Include radio stations in Quick Search

This commit is contained in:
Drew Weymouth
2024-07-01 08:04:10 -07:00
parent 5d13e7bf96
commit 59d979ba80
8 changed files with 74 additions and 8 deletions
+5 -1
View File
@@ -215,6 +215,7 @@ const (
ContentTypePlaylist
ContentTypeTrack
ContentTypeGenre
ContentTypeRadioStation
)
func (c ContentType) String() string {
@@ -229,6 +230,8 @@ func (c ContentType) String() string {
return "Playlist"
case ContentTypeGenre:
return "Genre"
case ContentTypeRadioStation:
return "Radio station"
default:
return "Unknown"
}
@@ -243,8 +246,9 @@ type SearchResult struct {
// for Album / Playlist: track count
// Artist / Genre: album count
// Track: length (seconds)
// for Radio: none
Size int
// Unset for ContentTypes Artist, Playlist, and Genre
// Unset for ContentTypes Artist, Playlist, Genre, and RadioStation
ArtistName string
}