move auto-organize to plugin

This commit is contained in:
Luke Pulverenti
2017-07-27 01:18:39 -04:00
parent 6652d856f9
commit d270b10db6
29 changed files with 20 additions and 2608 deletions

View File

@@ -1,24 +0,0 @@

namespace MediaBrowser.Model.FileOrganization
{
public class AutoOrganizeOptions
{
/// <summary>
/// Gets or sets the tv options.
/// </summary>
/// <value>The tv options.</value>
public TvFileOrganizationOptions TvOptions { get; set; }
/// <summary>
/// Gets or sets a list of smart match entries.
/// </summary>
/// <value>The smart match entries.</value>
public SmartMatchInfo[] SmartMatchInfos { get; set; }
public AutoOrganizeOptions()
{
TvOptions = new TvFileOrganizationOptions();
SmartMatchInfos = new SmartMatchInfo[]{};
}
}
}

View File

@@ -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<string, string> NewSeriesProviderIds { get; set; }
}
}

View File

@@ -1,109 +0,0 @@
using System;
using System.Collections.Generic;
namespace MediaBrowser.Model.FileOrganization
{
public class FileOrganizationResult
{
/// <summary>
/// Gets or sets the result identifier.
/// </summary>
/// <value>The result identifier.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the original path.
/// </summary>
/// <value>The original path.</value>
public string OriginalPath { get; set; }
/// <summary>
/// Gets or sets the name of the original file.
/// </summary>
/// <value>The name of the original file.</value>
public string OriginalFileName { get; set; }
/// <summary>
/// Gets or sets the name of the extracted.
/// </summary>
/// <value>The name of the extracted.</value>
public string ExtractedName { get; set; }
/// <summary>
/// Gets or sets the extracted year.
/// </summary>
/// <value>The extracted year.</value>
public int? ExtractedYear { get; set; }
/// <summary>
/// Gets or sets the extracted season number.
/// </summary>
/// <value>The extracted season number.</value>
public int? ExtractedSeasonNumber { get; set; }
/// <summary>
/// Gets or sets the extracted episode number.
/// </summary>
/// <value>The extracted episode number.</value>
public int? ExtractedEpisodeNumber { get; set; }
/// <summary>
/// Gets or sets the extracted ending episode number.
/// </summary>
/// <value>The extracted ending episode number.</value>
public int? ExtractedEndingEpisodeNumber { get; set; }
/// <summary>
/// Gets or sets the target path.
/// </summary>
/// <value>The target path.</value>
public string TargetPath { get; set; }
/// <summary>
/// Gets or sets the date.
/// </summary>
/// <value>The date.</value>
public DateTime Date { get; set; }
/// <summary>
/// Gets or sets the error message.
/// </summary>
/// <value>The error message.</value>
public string StatusMessage { get; set; }
/// <summary>
/// Gets or sets the status.
/// </summary>
/// <value>The status.</value>
public FileSortingStatus Status { get; set; }
/// <summary>
/// Gets or sets the type.
/// </summary>
/// <value>The type.</value>
public FileOrganizerType Type { get; set; }
/// <summary>
/// Gets or sets the duplicate paths.
/// </summary>
/// <value>The duplicate paths.</value>
public List<string> DuplicatePaths { get; set; }
/// <summary>
/// Gets or sets the size of the file.
/// </summary>
/// <value>The size of the file.</value>
public long FileSize { get; set; }
/// <summary>
/// Indicates if the item is currently being processed.
/// </summary>
/// <remarks>Runtime property not persisted to the store.</remarks>
public bool IsInProgress { get; set; }
public FileOrganizationResult()
{
DuplicatePaths = new List<string>();
}
}
}

View File

@@ -1,18 +0,0 @@

namespace MediaBrowser.Model.FileOrganization
{
public class FileOrganizationResultQuery
{
/// <summary>
/// Skips over a given number of items within the results. Use for paging.
/// </summary>
/// <value>The start index.</value>
public int? StartIndex { get; set; }
/// <summary>
/// The maximum number of items to return
/// </summary>
/// <value>The limit.</value>
public int? Limit { get; set; }
}
}

View File

@@ -1,9 +0,0 @@
namespace MediaBrowser.Model.FileOrganization
{
public enum FileOrganizerType
{
Movie,
Episode,
Song
}
}

View File

@@ -1,9 +0,0 @@
namespace MediaBrowser.Model.FileOrganization
{
public enum FileSortingStatus
{
Success,
Failure,
SkippedExisting
}
}

View File

@@ -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[] { };
}
}
}

View File

@@ -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;
}
}
}

View File

@@ -143,7 +143,6 @@
<Compile Include="System\IPowerManagement.cs" />
<Compile Include="Text\ITextEncoding.cs" />
<Compile Include="Extensions\LinqExtensions.cs" />
<Compile Include="FileOrganization\SmartMatchInfo.cs" />
<Compile Include="Health\IHealthMonitor.cs" />
<Compile Include="IO\FileSystemMetadata.cs" />
<Compile Include="IO\IFileSystem.cs" />
@@ -160,8 +159,6 @@
<Compile Include="Configuration\DynamicDayOfWeek.cs" />
<Compile Include="Entities\ExtraType.cs" />
<Compile Include="Entities\TrailerType.cs" />
<Compile Include="FileOrganization\AutoOrganizeOptions.cs" />
<Compile Include="FileOrganization\TvFileOrganizationOptions.cs" />
<Compile Include="Configuration\BaseApplicationConfiguration.cs" />
<Compile Include="Configuration\DlnaOptions.cs" />
<Compile Include="Configuration\ImageOption.cs" />
@@ -248,11 +245,6 @@
<Compile Include="Events\GenericEventArgs.cs" />
<Compile Include="Extensions\ListHelper.cs" />
<Compile Include="Extensions\StringHelper.cs" />
<Compile Include="FileOrganization\EpisodeFileOrganizationRequest.cs" />
<Compile Include="FileOrganization\FileOrganizationResult.cs" />
<Compile Include="FileOrganization\FileOrganizationResultQuery.cs" />
<Compile Include="FileOrganization\FileOrganizerType.cs" />
<Compile Include="FileOrganization\FileSortingStatus.cs" />
<Compile Include="Globalization\LocalizatonOption.cs" />
<Compile Include="IO\FileSystemEntryType.cs" />
<Compile Include="Library\PlayAccess.cs" />