@@ -151,35 +151,40 @@ type TracksByGenre struct {
151151 List []* TrackChild `xml:"song" json:"song"`
152152}
153153
154+ type TranscodeMeta struct {
155+ TranscodedContentType string `xml:"transcodedContentType,attr,omitempty" json:"transcodedContentType,omitempty"`
156+ TranscodedSuffix string `xml:"transcodedSuffix,attr,omitempty" json:"transcodedSuffix,omitempty"`
157+ }
158+
154159type TrackChild struct {
155- ID * specid.ID `xml:"id,attr,omitempty" json:"id,omitempty"`
156- Album string `xml:"album,attr,omitempty" json:"album,omitempty"`
157- AlbumID * specid.ID `xml:"albumId,attr,omitempty" json:"albumId,omitempty"`
158- Artist string `xml:"artist,attr,omitempty" json:"artist,omitempty"`
159- ArtistID * specid.ID `xml:"artistId,attr,omitempty" json:"artistId,omitempty"`
160- Bitrate int `xml:"bitRate,attr,omitempty" json:"bitRate,omitempty"`
161- ContentType string `xml:"contentType,attr,omitempty" json:"contentType,omitempty"`
162- TranscodedContentType string `xml:"transcodedContentType,attr,omitempty" json:"transcodedContentType,omitempty"`
163- CoverID * specid.ID `xml:"coverArt,attr,omitempty" json:"coverArt,omitempty"`
164- CreatedAt time.Time `xml:"created,attr,omitempty" json:"created,omitempty"`
165- Duration int `xml:"duration,attr,omitempty" json:"duration,omitempty"`
166- Genre string `xml:"genre,attr,omitempty" json:"genre,omitempty"`
167- IsDir bool `xml:"isDir,attr" json:"isDir"`
168- IsVideo bool `xml:"isVideo,attr" json:"isVideo"`
169- ParentID * specid.ID `xml:"parent,attr,omitempty" json:"parent,omitempty"`
170- Path string `xml:"path,attr,omitempty" json:"path,omitempty"`
171- Size int `xml:"size,attr,omitempty" json:"size,omitempty"`
172- Suffix string `xml:"suffix,attr,omitempty" json:"suffix,omitempty"`
173- TranscodedSuffix string `xml:"transcodedSuffix,attr,omitempty" json:"transcodedSuffix,omitempty"`
174- Title string `xml:"title,attr" json:"title"`
175- TrackNumber int `xml:"track,attr,omitempty" json:"track,omitempty"`
176- DiscNumber int `xml:"discNumber,attr,omitempty" json:"discNumber,omitempty"`
177- Type string `xml:"type,attr,omitempty" json:"type,omitempty"`
178- Year int `xml:"year,attr,omitempty" json:"year,omitempty"`
160+ ID * specid.ID `xml:"id,attr,omitempty" json:"id,omitempty"`
161+ Album string `xml:"album,attr,omitempty" json:"album,omitempty"`
162+ AlbumID * specid.ID `xml:"albumId,attr,omitempty" json:"albumId,omitempty"`
163+ Artist string `xml:"artist,attr,omitempty" json:"artist,omitempty"`
164+ ArtistID * specid.ID `xml:"artistId,attr,omitempty" json:"artistId,omitempty"`
165+ Bitrate int `xml:"bitRate,attr,omitempty" json:"bitRate,omitempty"`
166+ ContentType string `xml:"contentType,attr,omitempty" json:"contentType,omitempty"`
167+ CoverID * specid.ID `xml:"coverArt,attr,omitempty" json:"coverArt,omitempty"`
168+ CreatedAt time.Time `xml:"created,attr,omitempty" json:"created,omitempty"`
169+ Duration int `xml:"duration,attr,omitempty" json:"duration,omitempty"`
170+ Genre string `xml:"genre,attr,omitempty" json:"genre,omitempty"`
171+ IsDir bool `xml:"isDir,attr" json:"isDir"`
172+ IsVideo bool `xml:"isVideo,attr" json:"isVideo"`
173+ ParentID * specid.ID `xml:"parent,attr,omitempty" json:"parent,omitempty"`
174+ Path string `xml:"path,attr,omitempty" json:"path,omitempty"`
175+ Size int `xml:"size,attr,omitempty" json:"size,omitempty"`
176+ Suffix string `xml:"suffix,attr,omitempty" json:"suffix,omitempty"`
177+ Title string `xml:"title,attr" json:"title"`
178+ TrackNumber int `xml:"track,attr,omitempty" json:"track,omitempty"`
179+ DiscNumber int `xml:"discNumber,attr,omitempty" json:"discNumber,omitempty"`
180+ Type string `xml:"type,attr,omitempty" json:"type,omitempty"`
181+ Year int `xml:"year,attr,omitempty" json:"year,omitempty"`
179182 // star / rating
180183 Starred * time.Time `xml:"starred,attr,omitempty" json:"starred,omitempty"`
181184 UserRating int `xml:"userRating,attr,omitempty" json:"userRating,omitempty"`
182185 AverageRating string `xml:"averageRating,attr,omitempty" json:"averageRating,omitempty"`
186+
187+ TranscodeMeta
183188}
184189
185190type Artists struct {
@@ -292,7 +297,7 @@ type ArtistInfo struct {
292297 MediumImageURL string `xml:"mediumImageUrl" json:"mediumImageUrl"`
293298 LargeImageURL string `xml:"largeImageUrl" json:"largeImageUrl"`
294299 ArtistImageURL string `xml:"artistImageUrl" json:"artistImageUrl"` // not sure where this comes from but other clients seem to expect it
295- Similar []* Artist `xml:"similarArtist,omitempty" json:"similarArtist,omitempty"`
300+ Similar []* Artist `xml:"similarArtist,omitempty" json:"similarArtist,omitempty"`
296301}
297302
298303type Genres struct {
0 commit comments