Remove "Biography not available" when agents are not available
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user