mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-12 18:50:23 +01:00
Auto-Organize: Added feature to remember/persist series matching in manual organization dialog #2
When a filename cannot be auto-matched to an existing series name, the organization must be performed manually. Unfortunately not just once, but again and again for each episode coming in. This change proposes a simple but solid method to optionally persist the matching condition from within the manual organization dialog. This approach will make Emby "learn" how to organize files in the future without user interaction.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
namespace MediaBrowser.Model.FileOrganization
|
||||
{
|
||||
public class AutoOrganizeOptions
|
||||
@@ -9,9 +10,16 @@ namespace MediaBrowser.Model.FileOrganization
|
||||
/// <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 List<SmartMatchInfo> SmartMatchInfos { get; set; }
|
||||
|
||||
public AutoOrganizeOptions()
|
||||
{
|
||||
TvOptions = new TvFileOrganizationOptions();
|
||||
SmartMatchInfos = new List<SmartMatchInfo>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
19
MediaBrowser.Model/FileOrganization/SmartMatchInfo.cs
Normal file
19
MediaBrowser.Model/FileOrganization/SmartMatchInfo.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.FileOrganization
|
||||
{
|
||||
public class SmartMatchInfo
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public FileOrganizerType OrganizerType { get; set; }
|
||||
public List<string> MatchStrings { get; set; }
|
||||
|
||||
public SmartMatchInfo()
|
||||
{
|
||||
MatchStrings = new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -137,6 +137,7 @@
|
||||
<Compile Include="Dto\MetadataEditorInfo.cs" />
|
||||
<Compile Include="Dto\NameIdPair.cs" />
|
||||
<Compile Include="Dto\NameValuePair.cs" />
|
||||
<Compile Include="FileOrganization\SmartMatchInfo.cs" />
|
||||
<Compile Include="MediaInfo\LiveStreamRequest.cs" />
|
||||
<Compile Include="MediaInfo\LiveStreamResponse.cs" />
|
||||
<Compile Include="MediaInfo\PlaybackInfoRequest.cs" />
|
||||
|
||||
Reference in New Issue
Block a user