mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 23:35:25 +03:00
more sync movement
This commit is contained in:
@@ -72,7 +72,12 @@ namespace MediaBrowser.Server.Implementations.Collections
|
||||
DisplayMediaType = "Collection",
|
||||
Path = path,
|
||||
IsLocked = options.IsLocked,
|
||||
ProviderIds = options.ProviderIds
|
||||
ProviderIds = options.ProviderIds,
|
||||
Shares = options.UserIds.Select(i => new Share
|
||||
{
|
||||
UserId = i.ToString("N")
|
||||
|
||||
}).ToList()
|
||||
};
|
||||
|
||||
await parentFolder.AddChild(collection, CancellationToken.None).ConfigureAwait(false);
|
||||
@@ -156,7 +161,7 @@ namespace MediaBrowser.Server.Implementations.Collections
|
||||
}
|
||||
|
||||
itemList.Add(item);
|
||||
|
||||
|
||||
if (currentLinkedChildren.Any(i => i.Id == itemId))
|
||||
{
|
||||
throw new ArgumentException("Item already exists in collection");
|
||||
|
||||
Reference in New Issue
Block a user