extract random iter helper to be reused with Jellyfin

This commit is contained in:
Drew Weymouth
2023-11-14 09:05:02 -08:00
parent d948d2d725
commit c8255517f6
4 changed files with 163 additions and 84 deletions
+6
View File
@@ -34,6 +34,12 @@ type Favorites struct {
Tracks []*Track
}
type Server interface {
Ping() bool
Login(username, password string) error
MediaProvider() MediaProvider
}
type MediaProvider interface {
SetPrefetchCoverCallback(cb func(coverArtID string))