mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-31 15:37:51 +01:00
fix(podcast): fix build failure and missing episode play/status UX
server/e2e was failing to build because subsonic.New() gained a podcasts.Podcasts parameter that the sonic-similarity e2e test wasn't passing. Also fixes real bugs surfaced while getting the podcast tests green: completed episodes had no play button, the downloading status badge dropped its label text, and PodcastCreate's test suite assumed a single-step form submit instead of the actual preview-then-add flow.
This commit is contained in:
parent
b6b91709f0
commit
aa2d89611e
5 changed files with 86 additions and 21 deletions
|
|
@ -10,11 +10,13 @@ import (
|
|||
"github.com/navidrome/navidrome/core"
|
||||
"github.com/navidrome/navidrome/core/agents"
|
||||
"github.com/navidrome/navidrome/core/artwork"
|
||||
"github.com/navidrome/navidrome/core/ffmpeg"
|
||||
"github.com/navidrome/navidrome/core/lyrics"
|
||||
"github.com/navidrome/navidrome/core/matcher"
|
||||
"github.com/navidrome/navidrome/core/metrics"
|
||||
"github.com/navidrome/navidrome/core/playback"
|
||||
"github.com/navidrome/navidrome/core/playlists"
|
||||
"github.com/navidrome/navidrome/core/podcasts"
|
||||
"github.com/navidrome/navidrome/core/scrobbler"
|
||||
"github.com/navidrome/navidrome/core/sonic"
|
||||
"github.com/navidrome/navidrome/core/stream"
|
||||
|
|
@ -51,6 +53,7 @@ func buildSonicRouter(provider sonic.Provider) *subsonic.Router {
|
|||
metrics.NewNoopInstance(),
|
||||
lyrics.NewLyrics(ds, nil),
|
||||
decider,
|
||||
podcasts.NewPodcastService(context.Background(), ds, ffmpeg.New(), events.NoopBroker()),
|
||||
sonicSvc,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue