Merge pull request #7136 from 1337joe/fix-show-library-scan
Fix stuck show library scans
This commit is contained in:
commit
620a5d5e83
|
@ -3007,7 +3007,10 @@ namespace Emby.Server.Implementations.Library
|
|||
}
|
||||
}
|
||||
|
||||
CreateItems(personsToSave, null, CancellationToken.None);
|
||||
if (personsToSave.Count > 0)
|
||||
{
|
||||
CreateItems(personsToSave, null, CancellationToken.None);
|
||||
}
|
||||
}
|
||||
|
||||
private void StartScanInBackground()
|
||||
|
|
|
@ -33,6 +33,7 @@ namespace MediaBrowser.Controller.Entities.Movies
|
|||
public override bool SupportsPeople => true;
|
||||
|
||||
/// <inheritdoc />
|
||||
[JsonIgnore]
|
||||
public IReadOnlyList<BaseItem> LocalTrailers => GetExtras()
|
||||
.Where(extra => extra.ExtraType == Model.Entities.ExtraType.Trailer)
|
||||
.ToArray();
|
||||
|
|
|
@ -26,6 +26,7 @@ namespace MediaBrowser.Controller.Entities.Movies
|
|||
.ToArray();
|
||||
|
||||
/// <inheritdoc />
|
||||
[JsonIgnore]
|
||||
public IReadOnlyList<BaseItem> LocalTrailers => GetExtras()
|
||||
.Where(extra => extra.ExtraType == Model.Entities.ExtraType.Trailer)
|
||||
.ToArray();
|
||||
|
|
|
@ -21,6 +21,7 @@ namespace MediaBrowser.Controller.Entities.TV
|
|||
public class Episode : Video, IHasTrailers, IHasLookupInfo<EpisodeInfo>, IHasSeries
|
||||
{
|
||||
/// <inheritdoc />
|
||||
[JsonIgnore]
|
||||
public IReadOnlyList<BaseItem> LocalTrailers => GetExtras()
|
||||
.Where(extra => extra.ExtraType == Model.Entities.ExtraType.Trailer)
|
||||
.ToArray();
|
||||
|
|
|
@ -50,6 +50,7 @@ namespace MediaBrowser.Controller.Entities.TV
|
|||
public override bool SupportsPeople => true;
|
||||
|
||||
/// <inheritdoc />
|
||||
[JsonIgnore]
|
||||
public IReadOnlyList<BaseItem> LocalTrailers => GetExtras()
|
||||
.Where(extra => extra.ExtraType == Model.Entities.ExtraType.Trailer)
|
||||
.ToArray();
|
||||
|
|
Loading…
Reference in New Issue
Block a user