Add GetTopSongs placeholder, to make AVSub work

This commit is contained in:
Deluan
2020-08-05 13:48:50 -04:00
parent a541afbfba
commit 8e4b2e1c06
8 changed files with 46 additions and 0 deletions
+7
View File
@@ -191,6 +191,13 @@ func (c *BrowsingController) GetArtistInfo2(w http.ResponseWriter, r *http.Reque
return response, nil
}
// TODO Integrate with Last.FM
func (c *BrowsingController) GetTopSongs(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
response := NewResponse()
response.TopSongs = &responses.TopSongs{}
return response, nil
}
func (c *BrowsingController) buildDirectory(ctx context.Context, d *engine.DirectoryInfo) *responses.Directory {
dir := &responses.Directory{
Id: d.Id,