mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 14:28:46 +01:00
Add new params to collection creation
This commit is contained in:
@@ -26,7 +26,7 @@ namespace MediaBrowser.Server.Implementations.Collections
|
||||
_iLibraryMonitor = iLibraryMonitor;
|
||||
}
|
||||
|
||||
public async Task CreateCollection(CollectionCreationOptions options)
|
||||
public async Task<BoxSet> CreateCollection(CollectionCreationOptions options)
|
||||
{
|
||||
var name = options.Name;
|
||||
|
||||
@@ -64,6 +64,13 @@ namespace MediaBrowser.Server.Implementations.Collections
|
||||
|
||||
await collection.RefreshMetadata(new MetadataRefreshOptions(), CancellationToken.None)
|
||||
.ConfigureAwait(false);
|
||||
|
||||
if (options.ItemIdList.Count > 0)
|
||||
{
|
||||
await AddToCollection(collection.Id, options.ItemIdList);
|
||||
}
|
||||
|
||||
return collection;
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user