diff options
| author | softworkz <softworkz@hotmail.com> | 2016-02-27 00:52:00 +0100 |
|---|---|---|
| committer | softworkz <softworkz@hotmail.com> | 2016-02-27 00:59:03 +0100 |
| commit | 5bc708999061efc66761a41f6fc9212be91110b5 (patch) | |
| tree | 4ec434cc79421d5bf710ace7b5459b96a9e5eed8 /MediaBrowser.Model/FileOrganization | |
| parent | 26cf0df9cef5cb6ae910b3b2d4150b9c24c8cc96 (diff) | |
Create new series backend implementation
Diffstat (limited to 'MediaBrowser.Model/FileOrganization')
| -rw-r--r-- | MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs b/MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs index 0b12ebc51..6a3e6c30d 100644 --- a/MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs +++ b/MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs @@ -1,4 +1,6 @@ -namespace MediaBrowser.Model.FileOrganization +using System.Collections.Generic; + +namespace MediaBrowser.Model.FileOrganization { public class EpisodeFileOrganizationRequest { @@ -13,5 +15,38 @@ public int? EndingEpisodeNumber { get; set; } public bool RememberCorrection { get; set; } + public string NewSeriesName { get; set; } + + public string NewSeriesYear { get; set; } + + public string NewSeriesProviderIds { get; set; } + + public string TargetFolder { get; set; } + + public Dictionary<string, string> NewSeriesProviderIdsDictionary + { + get + { + var dic = new Dictionary<string, string>(); + + if (!string.IsNullOrEmpty(NewSeriesProviderIds)) + { + var str = NewSeriesProviderIds.Replace("{", "").Replace("}", "").Replace("\"", ""); + + foreach (var item in str.Split(',')) + { + var itemArr = item.Split(':'); + if (itemArr.Length > 1) + { + var key = itemArr[0].Trim(); + var val = itemArr[1].Trim(); + dic.Add(key, val); + } + } + } + + return dic; + } + } } }
\ No newline at end of file |
