add Jellyfin albumiterator

This commit is contained in:
Drew Weymouth
2023-11-14 09:05:02 -08:00
parent 08ca09d686
commit 8aed1e5234
6 changed files with 86 additions and 21 deletions
@@ -9,12 +9,21 @@ import (
"time"
"github.com/dweymouth/go-jellyfin"
jellyfinCli "github.com/dweymouth/go-jellyfin"
"github.com/dweymouth/supersonic/backend/mediaprovider"
"github.com/dweymouth/supersonic/sharedutil"
)
const cacheValidDurationSeconds = 60
type JellyfinServer struct {
jellyfinCli.Client
}
func (j *JellyfinServer) MediaProvider() mediaprovider.MediaProvider {
return newJellyfinMediaProvider(&j.Client)
}
var _ mediaprovider.MediaProvider = (*jellyfinMediaProvider)(nil)
type jellyfinMediaProvider struct {