Rename NewSeriesProviderIdsDictionary to NewSeriesProviderIds
This commit is contained in:
parent
35fb164c1d
commit
719f675fe5
|
@ -185,7 +185,7 @@ namespace MediaBrowser.Api.Library
|
||||||
SeriesId = request.SeriesId,
|
SeriesId = request.SeriesId,
|
||||||
NewSeriesName = request.NewSeriesName,
|
NewSeriesName = request.NewSeriesName,
|
||||||
NewSeriesYear = request.NewSeriesYear,
|
NewSeriesYear = request.NewSeriesYear,
|
||||||
NewSeriesProviderIdsDictionary = dicNewProviderIds,
|
NewSeriesProviderIds = dicNewProviderIds,
|
||||||
TargetFolder = request.TargetFolder
|
TargetFolder = request.TargetFolder
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,6 @@ namespace MediaBrowser.Model.FileOrganization
|
||||||
|
|
||||||
public string TargetFolder { get; set; }
|
public string TargetFolder { get; set; }
|
||||||
|
|
||||||
public Dictionary<string, string> NewSeriesProviderIdsDictionary { get; set; }
|
public Dictionary<string, string> NewSeriesProviderIds { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -159,11 +159,11 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
||||||
|
|
||||||
Series series = null;
|
Series series = null;
|
||||||
|
|
||||||
if (request.NewSeriesProviderIdsDictionary.Count > 0)
|
if (request.NewSeriesProviderIds.Count > 0)
|
||||||
{
|
{
|
||||||
// We're having a new series here
|
// We're having a new series here
|
||||||
SeriesInfo seriesRequest = new SeriesInfo();
|
SeriesInfo seriesRequest = new SeriesInfo();
|
||||||
seriesRequest.ProviderIds = request.NewSeriesProviderIdsDictionary;
|
seriesRequest.ProviderIds = request.NewSeriesProviderIds;
|
||||||
|
|
||||||
var refreshOptions = new MetadataRefreshOptions(_fileSystem);
|
var refreshOptions = new MetadataRefreshOptions(_fileSystem);
|
||||||
series = new Series();
|
series = new Series();
|
||||||
|
@ -184,7 +184,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
||||||
|
|
||||||
series.Path = Path.Combine(request.TargetFolder, seriesFolderName);
|
series.Path = Path.Combine(request.TargetFolder, seriesFolderName);
|
||||||
|
|
||||||
series.ProviderIds = request.NewSeriesProviderIdsDictionary;
|
series.ProviderIds = request.NewSeriesProviderIds;
|
||||||
|
|
||||||
await series.RefreshMetadata(refreshOptions, cancellationToken);
|
await series.RefreshMetadata(refreshOptions, cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user