From d270b10db67eeaa16a35920d5d86b1975dfffd16 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 27 Jul 2017 01:18:39 -0400 Subject: move auto-organize to plugin --- .../FileOrganization/AutoOrganizeOptions.cs | 24 ----- .../EpisodeFileOrganizationRequest.cs | 26 ----- .../FileOrganization/FileOrganizationResult.cs | 109 --------------------- .../FileOrganizationResultQuery.cs | 18 ---- .../FileOrganization/FileOrganizerType.cs | 9 -- .../FileOrganization/FileSortingStatus.cs | 9 -- .../FileOrganization/SmartMatchInfo.cs | 16 --- .../FileOrganization/TvFileOrganizationOptions.cs | 40 -------- 8 files changed, 251 deletions(-) delete mode 100644 MediaBrowser.Model/FileOrganization/AutoOrganizeOptions.cs delete mode 100644 MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs delete mode 100644 MediaBrowser.Model/FileOrganization/FileOrganizationResult.cs delete mode 100644 MediaBrowser.Model/FileOrganization/FileOrganizationResultQuery.cs delete mode 100644 MediaBrowser.Model/FileOrganization/FileOrganizerType.cs delete mode 100644 MediaBrowser.Model/FileOrganization/FileSortingStatus.cs delete mode 100644 MediaBrowser.Model/FileOrganization/SmartMatchInfo.cs delete mode 100644 MediaBrowser.Model/FileOrganization/TvFileOrganizationOptions.cs (limited to 'MediaBrowser.Model/FileOrganization') diff --git a/MediaBrowser.Model/FileOrganization/AutoOrganizeOptions.cs b/MediaBrowser.Model/FileOrganization/AutoOrganizeOptions.cs deleted file mode 100644 index 830d55bf5..000000000 --- a/MediaBrowser.Model/FileOrganization/AutoOrganizeOptions.cs +++ /dev/null @@ -1,24 +0,0 @@ - -namespace MediaBrowser.Model.FileOrganization -{ - public class AutoOrganizeOptions - { - /// - /// Gets or sets the tv options. - /// - /// The tv options. - public TvFileOrganizationOptions TvOptions { get; set; } - - /// - /// Gets or sets a list of smart match entries. - /// - /// The smart match entries. - public SmartMatchInfo[] SmartMatchInfos { get; set; } - - public AutoOrganizeOptions() - { - TvOptions = new TvFileOrganizationOptions(); - SmartMatchInfos = new SmartMatchInfo[]{}; - } - } -} diff --git a/MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs b/MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs deleted file mode 100644 index b20e43e54..000000000 --- a/MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.Collections.Generic; - -namespace MediaBrowser.Model.FileOrganization -{ - public class EpisodeFileOrganizationRequest - { - public string ResultId { get; set; } - - public string SeriesId { get; set; } - - public int SeasonNumber { get; set; } - - public int EpisodeNumber { get; set; } - - public int? EndingEpisodeNumber { get; set; } - - public bool RememberCorrection { get; set; } - public string NewSeriesName { get; set; } - - public string NewSeriesYear { get; set; } - - public string TargetFolder { get; set; } - - public Dictionary NewSeriesProviderIds { get; set; } - } -} \ No newline at end of file diff --git a/MediaBrowser.Model/FileOrganization/FileOrganizationResult.cs b/MediaBrowser.Model/FileOrganization/FileOrganizationResult.cs deleted file mode 100644 index caf99183d..000000000 --- a/MediaBrowser.Model/FileOrganization/FileOrganizationResult.cs +++ /dev/null @@ -1,109 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace MediaBrowser.Model.FileOrganization -{ - public class FileOrganizationResult - { - /// - /// Gets or sets the result identifier. - /// - /// The result identifier. - public string Id { get; set; } - - /// - /// Gets or sets the original path. - /// - /// The original path. - public string OriginalPath { get; set; } - - /// - /// Gets or sets the name of the original file. - /// - /// The name of the original file. - public string OriginalFileName { get; set; } - - /// - /// Gets or sets the name of the extracted. - /// - /// The name of the extracted. - public string ExtractedName { get; set; } - - /// - /// Gets or sets the extracted year. - /// - /// The extracted year. - public int? ExtractedYear { get; set; } - - /// - /// Gets or sets the extracted season number. - /// - /// The extracted season number. - public int? ExtractedSeasonNumber { get; set; } - - /// - /// Gets or sets the extracted episode number. - /// - /// The extracted episode number. - public int? ExtractedEpisodeNumber { get; set; } - - /// - /// Gets or sets the extracted ending episode number. - /// - /// The extracted ending episode number. - public int? ExtractedEndingEpisodeNumber { get; set; } - - /// - /// Gets or sets the target path. - /// - /// The target path. - public string TargetPath { get; set; } - - /// - /// Gets or sets the date. - /// - /// The date. - public DateTime Date { get; set; } - - /// - /// Gets or sets the error message. - /// - /// The error message. - public string StatusMessage { get; set; } - - /// - /// Gets or sets the status. - /// - /// The status. - public FileSortingStatus Status { get; set; } - - /// - /// Gets or sets the type. - /// - /// The type. - public FileOrganizerType Type { get; set; } - - /// - /// Gets or sets the duplicate paths. - /// - /// The duplicate paths. - public List DuplicatePaths { get; set; } - - /// - /// Gets or sets the size of the file. - /// - /// The size of the file. - public long FileSize { get; set; } - - /// - /// Indicates if the item is currently being processed. - /// - /// Runtime property not persisted to the store. - public bool IsInProgress { get; set; } - - public FileOrganizationResult() - { - DuplicatePaths = new List(); - } - } -} diff --git a/MediaBrowser.Model/FileOrganization/FileOrganizationResultQuery.cs b/MediaBrowser.Model/FileOrganization/FileOrganizationResultQuery.cs deleted file mode 100644 index 18287534e..000000000 --- a/MediaBrowser.Model/FileOrganization/FileOrganizationResultQuery.cs +++ /dev/null @@ -1,18 +0,0 @@ - -namespace MediaBrowser.Model.FileOrganization -{ - public class FileOrganizationResultQuery - { - /// - /// Skips over a given number of items within the results. Use for paging. - /// - /// The start index. - public int? StartIndex { get; set; } - - /// - /// The maximum number of items to return - /// - /// The limit. - public int? Limit { get; set; } - } -} diff --git a/MediaBrowser.Model/FileOrganization/FileOrganizerType.cs b/MediaBrowser.Model/FileOrganization/FileOrganizerType.cs deleted file mode 100644 index cbbeb9ce2..000000000 --- a/MediaBrowser.Model/FileOrganization/FileOrganizerType.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace MediaBrowser.Model.FileOrganization -{ - public enum FileOrganizerType - { - Movie, - Episode, - Song - } -} \ No newline at end of file diff --git a/MediaBrowser.Model/FileOrganization/FileSortingStatus.cs b/MediaBrowser.Model/FileOrganization/FileSortingStatus.cs deleted file mode 100644 index 8a467c05f..000000000 --- a/MediaBrowser.Model/FileOrganization/FileSortingStatus.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace MediaBrowser.Model.FileOrganization -{ - public enum FileSortingStatus - { - Success, - Failure, - SkippedExisting - } -} \ No newline at end of file diff --git a/MediaBrowser.Model/FileOrganization/SmartMatchInfo.cs b/MediaBrowser.Model/FileOrganization/SmartMatchInfo.cs deleted file mode 100644 index 28c99b89b..000000000 --- a/MediaBrowser.Model/FileOrganization/SmartMatchInfo.cs +++ /dev/null @@ -1,16 +0,0 @@ - -namespace MediaBrowser.Model.FileOrganization -{ - public class SmartMatchInfo - { - public string ItemName { get; set; } - public string DisplayName { get; set; } - public FileOrganizerType OrganizerType { get; set; } - public string[] MatchStrings { get; set; } - - public SmartMatchInfo() - { - MatchStrings = new string[] { }; - } - } -} diff --git a/MediaBrowser.Model/FileOrganization/TvFileOrganizationOptions.cs b/MediaBrowser.Model/FileOrganization/TvFileOrganizationOptions.cs deleted file mode 100644 index 973ecf6e7..000000000 --- a/MediaBrowser.Model/FileOrganization/TvFileOrganizationOptions.cs +++ /dev/null @@ -1,40 +0,0 @@ - -namespace MediaBrowser.Model.FileOrganization -{ - public class TvFileOrganizationOptions - { - public bool IsEnabled { get; set; } - public int MinFileSizeMb { get; set; } - public string[] LeftOverFileExtensionsToDelete { get; set; } - public string[] WatchLocations { get; set; } - - public string SeasonFolderPattern { get; set; } - - public string SeasonZeroFolderName { get; set; } - - public string EpisodeNamePattern { get; set; } - public string MultiEpisodeNamePattern { get; set; } - - public bool OverwriteExistingEpisodes { get; set; } - - public bool DeleteEmptyFolders { get; set; } - - public bool CopyOriginalFile { get; set; } - - public TvFileOrganizationOptions() - { - MinFileSizeMb = 50; - - LeftOverFileExtensionsToDelete = new string[] { }; - - WatchLocations = new string[] { }; - - EpisodeNamePattern = "%sn - %sx%0e - %en.%ext"; - MultiEpisodeNamePattern = "%sn - %sx%0e-x%0ed - %en.%ext"; - SeasonFolderPattern = "Season %s"; - SeasonZeroFolderName = "Season 0"; - - CopyOriginalFile = false; - } - } -} -- cgit v1.2.3