diff --git a/src/NzbDrone.Core/Organizer/BasicNamingConfig.cs b/src/NzbDrone.Core/Organizer/BasicNamingConfig.cs deleted file mode 100644 index b0dc16f6a..000000000 --- a/src/NzbDrone.Core/Organizer/BasicNamingConfig.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace NzbDrone.Core.Organizer -{ - public class BasicNamingConfig - { - public bool IncludeSeriesTitle { get; set; } - public bool IncludeEpisodeTitle { get; set; } - public bool IncludeQuality { get; set; } - public bool ReplaceSpaces { get; set; } - public string Separator { get; set; } - public string NumberStyle { get; set; } - } -} diff --git a/src/NzbDrone.Core/Organizer/FileNameBuilder.cs b/src/NzbDrone.Core/Organizer/FileNameBuilder.cs index d570072a2..c2af95011 100644 --- a/src/NzbDrone.Core/Organizer/FileNameBuilder.cs +++ b/src/NzbDrone.Core/Organizer/FileNameBuilder.cs @@ -24,7 +24,6 @@ public interface IBuildFileNames { string BuildFileName(Movie movie, MovieFile movieFile, NamingConfig namingConfig = null, List customFormats = null); string BuildFilePath(Movie movie, string fileName, string extension); - BasicNamingConfig GetBasicNamingConfig(NamingConfig nameSpec); string GetMovieFolder(Movie movie, NamingConfig namingConfig = null); } @@ -155,11 +154,6 @@ public string BuildFilePath(Movie movie, string fileName, string extension) return Path.Combine(path, fileName + extension); } - public BasicNamingConfig GetBasicNamingConfig(NamingConfig nameSpec) - { - return new BasicNamingConfig(); // For now let's be lazy - } - public string GetMovieFolder(Movie movie, NamingConfig namingConfig = null) { if (namingConfig == null) diff --git a/src/Radarr.Api.V3/Config/NamingConfigController.cs b/src/Radarr.Api.V3/Config/NamingConfigController.cs index 92f234a30..fd9f406c2 100644 --- a/src/Radarr.Api.V3/Config/NamingConfigController.cs +++ b/src/Radarr.Api.V3/Config/NamingConfigController.cs @@ -44,12 +44,6 @@ public NamingConfigResource GetNamingConfig() var nameSpec = _namingConfigService.GetConfig(); var resource = nameSpec.ToResource(); - if (resource.StandardMovieFormat.IsNotNullOrWhiteSpace()) - { - var basicConfig = _filenameBuilder.GetBasicNamingConfig(nameSpec); - basicConfig.AddToResource(resource); - } - return resource; } diff --git a/src/Radarr.Api.V3/Config/NamingConfigResource.cs b/src/Radarr.Api.V3/Config/NamingConfigResource.cs index be0453710..7cc9bc683 100644 --- a/src/Radarr.Api.V3/Config/NamingConfigResource.cs +++ b/src/Radarr.Api.V3/Config/NamingConfigResource.cs @@ -10,9 +10,5 @@ public class NamingConfigResource : RestResource public ColonReplacementFormat ColonReplacementFormat { get; set; } public string StandardMovieFormat { get; set; } public string MovieFolderFormat { get; set; } - public bool IncludeQuality { get; set; } - public bool ReplaceSpaces { get; set; } - public string Separator { get; set; } - public string NumberStyle { get; set; } } } diff --git a/src/Radarr.Api.V3/Config/NamingExampleResource.cs b/src/Radarr.Api.V3/Config/NamingExampleResource.cs index 37d636f46..05f9af4ad 100644 --- a/src/Radarr.Api.V3/Config/NamingExampleResource.cs +++ b/src/Radarr.Api.V3/Config/NamingExampleResource.cs @@ -20,23 +20,10 @@ public static NamingConfigResource ToResource(this NamingConfig model) ReplaceIllegalCharacters = model.ReplaceIllegalCharacters, ColonReplacementFormat = model.ColonReplacementFormat, StandardMovieFormat = model.StandardMovieFormat, - MovieFolderFormat = model.MovieFolderFormat, - - // IncludeQuality - // ReplaceSpaces - // Separator - // NumberStyle + MovieFolderFormat = model.MovieFolderFormat }; } - public static void AddToResource(this BasicNamingConfig basicNamingConfig, NamingConfigResource resource) - { - resource.IncludeQuality = basicNamingConfig.IncludeQuality; - resource.ReplaceSpaces = basicNamingConfig.ReplaceSpaces; - resource.Separator = basicNamingConfig.Separator; - resource.NumberStyle = basicNamingConfig.NumberStyle; - } - public static NamingConfig ToModel(this NamingConfigResource resource) { return new NamingConfig