support cover art for internet radio stations

This commit is contained in:
Drew Weymouth
2026-04-09 08:25:43 -07:00
parent d985154062
commit 84440f9935
4 changed files with 9 additions and 6 deletions
+5 -3
View File
@@ -209,6 +209,7 @@ type RadioStation struct {
ID string
HomePageURL string
StreamURL string
CoverArtID string
}
type MediaItemType int
@@ -267,9 +268,10 @@ func (r *RadioStation) Metadata() MediaItemMetadata {
return MediaItemMetadata{}
}
return MediaItemMetadata{
Type: MediaItemTypeRadioStation,
ID: r.ID,
Name: r.Name,
Type: MediaItemTypeRadioStation,
ID: r.ID,
Name: r.Name,
CoverArtID: r.CoverArtID,
}
}