0.2.77
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user