Merge branch 'main' into feature/lyrics

This commit is contained in:
Drew Weymouth
2024-03-06 09:46:44 -08:00
committed by GitHub
8 changed files with 143 additions and 31 deletions
+8 -4
View File
@@ -2,7 +2,6 @@ package browsing
import (
"fmt"
"log"
"strings"
"fyne.io/fyne/v2"
@@ -111,9 +110,14 @@ func (a *ArtistsPage) Reload() {
}
func (a *ArtistsPage) load() {
artists, err := a.mp.GetArtists()
if err != nil {
log.Printf("error loading artists: %v", err.Error())
iter := a.mp.IterateArtists("")
var artists []*mediaprovider.Artist
for {
artist := iter.Next()
if artist == nil {
break
}
artists = append(artists, artist)
}
a.artists = artists
a.onSearched(a.searcher.Entry.Text, true)