extend searchdialog / SearchResult to properly support headphone profiles

This commit is contained in:
Drew Weymouth
2026-02-06 08:27:52 -08:00
parent 7e3b102fa4
commit daf0440fbc
5 changed files with 41 additions and 15 deletions
+11 -1
View File
@@ -1,6 +1,10 @@
package mediaprovider
import "time"
import (
"time"
"fyne.io/fyne/v2"
)
// Bit field flag for the ReleaseTypes property
type ReleaseType = int32
@@ -282,6 +286,7 @@ const (
ContentTypeTrack
ContentTypeGenre
ContentTypeRadioStation
ContentTypeOther
)
func (c ContentType) String() string {
@@ -298,6 +303,8 @@ func (c ContentType) String() string {
return "Genre"
case ContentTypeRadioStation:
return "Radio station"
case ContentTypeOther:
return "Other"
default:
return "Unknown"
}
@@ -309,6 +316,9 @@ type SearchResult struct {
CoverID string
Type ContentType
// Optional icon to display instead of the default for this content type
Icon fyne.Resource
// for Album / Playlist: track count
// Artist / Genre: album count
// Track: length (seconds)