feat(subsonic): add coverArt to internetRadioStation response
Add OpenSubsonic coverArt extension to GetInternetRadios, showing uploaded radio images for non-legacy clients. Ref: https://github.com/opensubsonic/open-subsonic-api/pull/224 Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -509,10 +509,15 @@ type InternetRadioStations struct {
|
||||
}
|
||||
|
||||
type Radio struct {
|
||||
ID string `xml:"id,attr" json:"id"`
|
||||
Name string `xml:"name,attr" json:"name"`
|
||||
StreamUrl string `xml:"streamUrl,attr" json:"streamUrl"`
|
||||
HomepageUrl string `xml:"homePageUrl,omitempty,attr" json:"homePageUrl,omitempty"`
|
||||
ID string `xml:"id,attr" json:"id"`
|
||||
Name string `xml:"name,attr" json:"name"`
|
||||
StreamUrl string `xml:"streamUrl,attr" json:"streamUrl"`
|
||||
HomepageUrl string `xml:"homePageUrl,omitempty,attr" json:"homePageUrl,omitempty"`
|
||||
*OpenSubsonicRadio `xml:",omitempty" json:",omitempty"`
|
||||
}
|
||||
|
||||
type OpenSubsonicRadio struct {
|
||||
CoverArt string `xml:"coverArt,attr,omitempty" json:"coverArt"`
|
||||
}
|
||||
|
||||
type JukeboxStatus struct {
|
||||
|
||||
Reference in New Issue
Block a user