mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 00:05:26 +03:00
updated movie db provider to support downloaded trailers
This commit is contained in:
@@ -97,6 +97,8 @@ namespace MediaBrowser.Controller.Entities
|
||||
throw new InvalidOperationException("Unable to add " + item.Name);
|
||||
}
|
||||
|
||||
item.Parent = this;
|
||||
|
||||
var newChildren = Children.ToList();
|
||||
|
||||
await LibraryManager.CreateItem(item, cancellationToken).ConfigureAwait(false);
|
||||
@@ -120,6 +122,8 @@ namespace MediaBrowser.Controller.Entities
|
||||
throw new InvalidOperationException("Unable to remove " + item.Name);
|
||||
}
|
||||
|
||||
item.Parent = null;
|
||||
|
||||
var newChildren = Children.ToList();
|
||||
|
||||
LibraryManager.ReportItemRemoved(item);
|
||||
@@ -193,7 +197,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// <returns>IEnumerable{BaseItem}.</returns>
|
||||
private IEnumerable<BaseItem> GetIndexByPerson(User user, List<string> personTypes, bool includeAudio, string indexName)
|
||||
{
|
||||
|
||||
// Even though this implementation means multiple iterations over the target list - it allows us to defer
|
||||
// the retrieval of the individual children for each index value until they are requested.
|
||||
using (new Profiler(indexName + " Index Build for " + Name, Logger))
|
||||
|
||||
Reference in New Issue
Block a user