aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs')
-rw-r--r--MediaBrowser.Model/FileOrganization/EpisodeFileOrganizationRequest.cs37
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