mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 06:48:35 +01:00
update download error handling
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
@@ -9,6 +8,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// Gets or sets the special feature ids.
|
||||
/// </summary>
|
||||
/// <value>The special feature ids.</value>
|
||||
List<Guid> SpecialFeatureIds { get; set; }
|
||||
Guid[] SpecialFeatureIds { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,11 +19,11 @@ namespace MediaBrowser.Controller.Entities.Movies
|
||||
/// </summary>
|
||||
public class Movie : Video, IHasSpecialFeatures, IHasTrailers, IHasLookupInfo<MovieInfo>, ISupportsBoxSetGrouping
|
||||
{
|
||||
public List<Guid> SpecialFeatureIds { get; set; }
|
||||
public Guid[] SpecialFeatureIds { get; set; }
|
||||
|
||||
public Movie()
|
||||
{
|
||||
SpecialFeatureIds = new List<Guid>();
|
||||
SpecialFeatureIds = EmptyGuidArray;
|
||||
RemoteTrailers = EmptyMediaUrlArray;
|
||||
LocalTrailerIds = EmptyGuidArray;
|
||||
RemoteTrailerIds = EmptyGuidArray;
|
||||
@@ -77,7 +77,7 @@ namespace MediaBrowser.Controller.Entities.Movies
|
||||
private async Task<bool> RefreshSpecialFeatures(MetadataRefreshOptions options, List<FileSystemMetadata> fileSystemChildren, CancellationToken cancellationToken)
|
||||
{
|
||||
var newItems = LibraryManager.FindExtras(this, fileSystemChildren, options.DirectoryService).ToList();
|
||||
var newItemIds = newItems.Select(i => i.Id).ToList();
|
||||
var newItemIds = newItems.Select(i => i.Id).ToArray();
|
||||
|
||||
var itemsChanged = !SpecialFeatureIds.SequenceEqual(newItemIds);
|
||||
|
||||
|
||||
@@ -1387,8 +1387,8 @@ namespace MediaBrowser.Controller.Entities
|
||||
if (movie != null)
|
||||
{
|
||||
var ok = filterValue
|
||||
? movie.SpecialFeatureIds.Count > 0
|
||||
: movie.SpecialFeatureIds.Count == 0;
|
||||
? movie.SpecialFeatureIds.Length > 0
|
||||
: movie.SpecialFeatureIds.Length == 0;
|
||||
|
||||
if (!ok)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user