OpenSubsonic: getPodcastEpisode, topSongsByArtistId, transcodeOffset (real ffmpeg seek)

This commit is contained in:
2026-08-23 08:06:12 -05:00
parent e38d31d384
commit e88f4e040c
7 changed files with 219 additions and 15 deletions
+10
View File
@@ -74,3 +74,13 @@ func newTestRecorderServer(t *testing.T) (*Server, *httptest.Server) {
t.Cleanup(srv.Close)
return s, srv
}
// newSubsonicTestServer starts an HTTP server for an already-constructed
// Server (as opposed to newTestRecorderServer, which builds its own) —
// for tests that need to seed the database before the server matters.
func newSubsonicTestServer(t *testing.T, s *Server) string {
t.Helper()
srv := httptest.NewServer(s.Router())
t.Cleanup(srv.Close)
return srv.URL
}