mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
Clean Up Model (EpisodeFileOrganizationRequest)
This commit is contained in:
@@ -19,34 +19,8 @@ namespace MediaBrowser.Model.FileOrganization
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
public Dictionary<string, string> NewSeriesProviderIdsDictionary { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user