diff options
| author | softworkz <softworkz@hotmail.com> | 2016-02-28 03:56:16 +0100 |
|---|---|---|
| committer | softworkz <softworkz@hotmail.com> | 2016-02-28 03:56:16 +0100 |
| commit | f5aa1250cad988c18d62c384879e0c5f87ce607d (patch) | |
| tree | 294040c02c2f3cfdb6ef83c683da0c646ba1dc4d /MediaBrowser.Api/Library/FileOrganizationService.cs | |
| parent | b5c41d104cf631e84f0c46696d4452c7082692f3 (diff) | |
Change NewSeriesProviderIds parameter type to Dictionary<string, string>
Diffstat (limited to 'MediaBrowser.Api/Library/FileOrganizationService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/FileOrganizationService.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Api/Library/FileOrganizationService.cs b/MediaBrowser.Api/Library/FileOrganizationService.cs index b04da49f6..849e9cf0d 100644 --- a/MediaBrowser.Api/Library/FileOrganizationService.cs +++ b/MediaBrowser.Api/Library/FileOrganizationService.cs @@ -76,8 +76,8 @@ namespace MediaBrowser.Api.Library [ApiMember(Name = "RememberCorrection", Description = "Whether or not to apply the same correction to future episodes of the same series.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "POST")] public bool RememberCorrection { get; set; } - [ApiMember(Name = "NewSeriesProviderIds", Description = "A list of provider IDs identifying a new series.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] - public string NewSeriesProviderIds { get; set; } + [ApiMember(Name = "NewSeriesProviderIds", Description = "A list of provider IDs identifying a new series.", IsRequired = false, DataType = "Dictionary<string, string>", ParameterType = "query", Verb = "POST")] + public Dictionary<string, string> NewSeriesProviderIds { get; set; } [ApiMember(Name = "NewSeriesName", Description = "Name of a series to add.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] public string NewSeriesName { get; set; } @@ -165,9 +165,9 @@ namespace MediaBrowser.Api.Library { var dicNewProviderIds = new Dictionary<string, string>(); - if (!string.IsNullOrEmpty(request.NewSeriesProviderIds)) + if (request.NewSeriesProviderIds != null) { - dicNewProviderIds = _jsonSerializer.DeserializeFromString<Dictionary<string, string>>(request.NewSeriesProviderIds); + dicNewProviderIds = request.NewSeriesProviderIds; } var task = _iFileOrganizationService.PerformEpisodeOrganization(new EpisodeFileOrganizationRequest |
