mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 04:34:18 +01:00
revert servicestack.text update
This commit is contained in:
@@ -12,6 +12,7 @@ using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Model.IO;
|
||||
using MediaBrowser.Model.Extensions;
|
||||
|
||||
namespace Emby.Server.Implementations.Collections
|
||||
{
|
||||
@@ -190,7 +191,9 @@ namespace Emby.Server.Implementations.Collections
|
||||
|
||||
if (list.Count > 0)
|
||||
{
|
||||
collection.LinkedChildren.AddRange(list);
|
||||
var newList = collection.LinkedChildren.ToList();
|
||||
newList.AddRange(list);
|
||||
collection.LinkedChildren = newList.ToArray(newList.Count);
|
||||
|
||||
collection.UpdateRatingToContent();
|
||||
|
||||
@@ -241,9 +244,9 @@ namespace Emby.Server.Implementations.Collections
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var child in list)
|
||||
if (list.Count > 0)
|
||||
{
|
||||
collection.LinkedChildren.Remove(child);
|
||||
collection.LinkedChildren = collection.LinkedChildren.Except(list).ToArray();
|
||||
}
|
||||
|
||||
collection.UpdateRatingToContent();
|
||||
|
||||
Reference in New Issue
Block a user