diff options
| author | softworkz <softworkz@hotmail.com> | 2015-09-23 06:12:46 +0200 |
|---|---|---|
| committer | softworkz <softworkz@hotmail.com> | 2016-02-05 05:21:25 +0100 |
| commit | 3a868e28b3e3d9f0a13fc38c680047010d627b0f (patch) | |
| tree | 4b9f71b825e4c0222b7becc4bee5c0cf2d2871ab /MediaBrowser.Server.Implementations/FileOrganization/Extensions.cs | |
| parent | d28ef71d93ea7fe50343f82f575637307b4d74bf (diff) | |
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.
Diffstat (limited to 'MediaBrowser.Server.Implementations/FileOrganization/Extensions.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/FileOrganization/Extensions.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/FileOrganization/Extensions.cs b/MediaBrowser.Server.Implementations/FileOrganization/Extensions.cs index e43ab3665..c560152db 100644 --- a/MediaBrowser.Server.Implementations/FileOrganization/Extensions.cs +++ b/MediaBrowser.Server.Implementations/FileOrganization/Extensions.cs @@ -10,6 +10,10 @@ namespace MediaBrowser.Server.Implementations.FileOrganization { return manager.GetConfiguration<AutoOrganizeOptions>("autoorganize"); } + public static void SaveAutoOrganizeOptions(this IConfigurationManager manager, AutoOrganizeOptions options) + { + manager.SaveConfiguration("autoorganize", options); + } } public class AutoOrganizeOptionsFactory : IConfigurationFactory |
