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 ID string
HomePageURL string HomePageURL string
StreamURL string StreamURL string
CoverArtID string
} }
type MediaItemType int type MediaItemType int
@@ -267,9 +268,10 @@ func (r *RadioStation) Metadata() MediaItemMetadata {
return MediaItemMetadata{} return MediaItemMetadata{}
} }
return MediaItemMetadata{ return MediaItemMetadata{
Type: MediaItemTypeRadioStation, Type: MediaItemTypeRadioStation,
ID: r.ID, ID: r.ID,
Name: r.Name, Name: r.Name,
CoverArtID: r.CoverArtID,
} }
} }
@@ -508,6 +508,7 @@ func (s *subsonicMediaProvider) GetRadioStations() ([]*mediaprovider.RadioStatio
Name: rs.Name, Name: rs.Name,
HomePageURL: rs.HomePageUrl, HomePageURL: rs.HomePageUrl,
StreamURL: rs.StreamUrl, StreamURL: rs.StreamUrl,
CoverArtID: rs.CoverArt,
} }
}) })
s.radiosCachedAt = time.Now().Unix() s.radiosCachedAt = time.Now().Unix()
+1 -1
View File
@@ -22,7 +22,7 @@ require (
github.com/quarckster/go-mpris-server v1.0.3 github.com/quarckster/go-mpris-server v1.0.3
github.com/supersonic-app/fyne-lyrics v0.0.0-20250614151306-b1880a70a410 github.com/supersonic-app/fyne-lyrics v0.0.0-20250614151306-b1880a70a410
github.com/supersonic-app/go-mpv v0.1.1-0.20250822102843-7a8cde5f5449 github.com/supersonic-app/go-mpv v0.1.1-0.20250822102843-7a8cde5f5449
github.com/supersonic-app/go-subsonic v0.0.0-20260405192806-29d84070230a github.com/supersonic-app/go-subsonic v0.0.0-20260409151555-0d5fb7d4801a
github.com/supersonic-app/go-upnpcast v0.1.0 github.com/supersonic-app/go-upnpcast v0.1.0
github.com/zalando/go-keyring v0.2.8 github.com/zalando/go-keyring v0.2.8
golang.org/x/net v0.50.0 golang.org/x/net v0.50.0
+2 -2
View File
@@ -123,8 +123,8 @@ github.com/supersonic-app/fyne-lyrics v0.0.0-20250614151306-b1880a70a410 h1:wuDH
github.com/supersonic-app/fyne-lyrics v0.0.0-20250614151306-b1880a70a410/go.mod h1:XvGBPgXWkKrK+5OsoVkTcTZmwZac1Sj6miEn8q6uA20= github.com/supersonic-app/fyne-lyrics v0.0.0-20250614151306-b1880a70a410/go.mod h1:XvGBPgXWkKrK+5OsoVkTcTZmwZac1Sj6miEn8q6uA20=
github.com/supersonic-app/go-mpv v0.1.1-0.20250822102843-7a8cde5f5449 h1:UHIPI43VzyWuIF8z8WVMdjMsC/orZTZQJraD/Iv+ghw= github.com/supersonic-app/go-mpv v0.1.1-0.20250822102843-7a8cde5f5449 h1:UHIPI43VzyWuIF8z8WVMdjMsC/orZTZQJraD/Iv+ghw=
github.com/supersonic-app/go-mpv v0.1.1-0.20250822102843-7a8cde5f5449/go.mod h1:1bQz6kBQumJopXEbkiqoLxIXLy7F7yWFBvknvpAtIC0= github.com/supersonic-app/go-mpv v0.1.1-0.20250822102843-7a8cde5f5449/go.mod h1:1bQz6kBQumJopXEbkiqoLxIXLy7F7yWFBvknvpAtIC0=
github.com/supersonic-app/go-subsonic v0.0.0-20260405192806-29d84070230a h1:E8W3H0ZEU4ZUQSMiig+k6ZeYiNuu2El2t7JgtvrVBBc= github.com/supersonic-app/go-subsonic v0.0.0-20260409151555-0d5fb7d4801a h1:zK5ZbE7H337udw2tOZQlnhGv7URSxfV1AIvRpKdHG2E=
github.com/supersonic-app/go-subsonic v0.0.0-20260405192806-29d84070230a/go.mod h1:ClhAgC2qobwH19D6kdwULLYSHlOmldDGkdu2G2Z0Ijo= github.com/supersonic-app/go-subsonic v0.0.0-20260409151555-0d5fb7d4801a/go.mod h1:ClhAgC2qobwH19D6kdwULLYSHlOmldDGkdu2G2Z0Ijo=
github.com/supersonic-app/go-upnpcast v0.1.0 h1:SL0WVgnqvAVaLT9MSRhSeVwF9pcUw1cgBITKVoWXN3g= github.com/supersonic-app/go-upnpcast v0.1.0 h1:SL0WVgnqvAVaLT9MSRhSeVwF9pcUw1cgBITKVoWXN3g=
github.com/supersonic-app/go-upnpcast v0.1.0/go.mod h1:o/QGDTK3qdaS3h9Bt8aH5ywgbWbrPVzPCHlZYFs0IHY= github.com/supersonic-app/go-upnpcast v0.1.0/go.mod h1:o/QGDTK3qdaS3h9Bt8aH5ywgbWbrPVzPCHlZYFs0IHY=
github.com/yuin/goldmark v1.7.16 h1:n+CJdUxaFMiDUNnWC3dMWCIQJSkxH4uz3ZwQBkAlVNE= github.com/yuin/goldmark v1.7.16 h1:n+CJdUxaFMiDUNnWC3dMWCIQJSkxH4uz3ZwQBkAlVNE=