This commit is contained in:
ponzischeme89
2026-08-19 06:57:59 +12:00
parent 8c847c59b8
commit 2b43b9ef12
94 changed files with 6359 additions and 778 deletions
+7
View File
@@ -247,6 +247,13 @@ func (s *Server) resolveLocalTrailer(
}
func (s *Server) trailerManifest(ctx context.Context, sess store.Session, itemID string) (trailerManifest, error) {
// A film Radarr is tracking has no Emby record to ask about local or remote trailers,
// so its chain is built from what Radarr knows. It joins here rather than beside the
// detail route because everything downstream — availability, resolve, report, the
// player's walk through the candidates — is then unchanged for both kinds of subject.
if movieID, ok := radarrMovieID(itemID); ok && strings.HasPrefix(itemID, radarrItemPrefix) {
return s.radarrTrailerManifest(ctx, itemID, movieID)
}
key := cache.UserKey(sess.EmbyUserID, "trailers:v2:"+itemID)
if s.cache != nil {
if raw, err := s.cache.Get(ctx, key); err == nil {