mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Change NewSeriesProviderIds parameter type to Dictionary<string, string>
This commit is contained in:
parent
b5c41d104c
commit
f5aa1250ca
@ -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")]
|
[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; }
|
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")]
|
[ApiMember(Name = "NewSeriesProviderIds", Description = "A list of provider IDs identifying a new series.", IsRequired = false, DataType = "Dictionary<string, string>", ParameterType = "query", Verb = "POST")]
|
||||||
public string NewSeriesProviderIds { get; set; }
|
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")]
|
[ApiMember(Name = "NewSeriesName", Description = "Name of a series to add.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")]
|
||||||
public string NewSeriesName { get; set; }
|
public string NewSeriesName { get; set; }
|
||||||
@ -165,9 +165,9 @@ namespace MediaBrowser.Api.Library
|
|||||||
{
|
{
|
||||||
var dicNewProviderIds = new Dictionary<string, string>();
|
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
|
var task = _iFileOrganizationService.PerformEpisodeOrganization(new EpisodeFileOrganizationRequest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user