diff --git a/src/Radarr.Api.V3/MovieFiles/MovieFileListResource.cs b/src/Radarr.Api.V3/MovieFiles/MovieFileListResource.cs index a8024df32..083878037 100644 --- a/src/Radarr.Api.V3/MovieFiles/MovieFileListResource.cs +++ b/src/Radarr.Api.V3/MovieFiles/MovieFileListResource.cs @@ -12,6 +12,7 @@ public class MovieFileListResource public QualityModel Quality { get; set; } public string Edition { get; set; } public string ReleaseGroup { get; set; } + public string SceneName { get; set; } public int? IndexerFlags { get; set; } } } diff --git a/src/Radarr.Api.V3/MovieFiles/MovieFileModule.cs b/src/Radarr.Api.V3/MovieFiles/MovieFileModule.cs index 4d57905f7..00c3ccf52 100644 --- a/src/Radarr.Api.V3/MovieFiles/MovieFileModule.cs +++ b/src/Radarr.Api.V3/MovieFiles/MovieFileModule.cs @@ -11,6 +11,7 @@ using NzbDrone.Core.MediaFiles.Events; using NzbDrone.Core.Messaging.Events; using NzbDrone.Core.Movies; +using NzbDrone.Core.Parser; using NzbDrone.Core.Parser.Model; using NzbDrone.SignalR; using Radarr.Api.V3.CustomFormats; @@ -115,7 +116,16 @@ private void SetMovieFile(MovieFileResource movieFileResource) movieFile.Quality = movieFileResource.Quality; movieFile.Languages = movieFileResource.Languages; movieFile.Edition = movieFileResource.Edition; - movieFile.ReleaseGroup = movieFileResource.ReleaseGroup; + if (movieFileResource.ReleaseGroup != null) + { + movieFile.ReleaseGroup = movieFileResource.ReleaseGroup; + } + + if (movieFileResource.SceneName != null && SceneChecker.IsSceneTitle(movieFileResource.SceneName)) + { + movieFile.SceneName = movieFileResource.SceneName; + } + _mediaFileService.Update(movieFile); } @@ -151,6 +161,11 @@ private object SetMovieFile() { movieFile.ReleaseGroup = resource.ReleaseGroup; } + + if (resource.SceneName != null && SceneChecker.IsSceneTitle(resource.SceneName)) + { + movieFile.SceneName = resource.SceneName; + } } _mediaFileService.Update(movieFiles);