Remove "Biography not available" when agents are not available

This commit is contained in:
Deluan
2023-01-13 14:47:18 -05:00
committed by Deluan Quintão
parent 3f2d24695e
commit 0ffef05cc3
3 changed files with 6 additions and 12 deletions
-8
View File
@@ -9,10 +9,6 @@ import (
const LocalAgentName = "local"
const (
localBiography = "Biography not available"
)
type localAgent struct {
ds model.DataStore
}
@@ -25,10 +21,6 @@ func (p *localAgent) AgentName() string {
return LocalAgentName
}
func (p *localAgent) GetBiography(ctx context.Context, id, name, mbid string) (string, error) {
return localBiography, nil
}
func (p *localAgent) GetTopSongs(ctx context.Context, id, artistName, mbid string, count int) ([]Song, error) {
top, err := p.ds.MediaFile(ctx).GetAll(model.QueryOptions{
Sort: "playCount",