mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-05 17:56:18 +00:00
update image inheritance
This commit is contained in:
@@ -1539,7 +1539,7 @@ namespace Emby.Server.Implementations.Dto
|
||||
dto.ParentArtImageTag = GetImageCacheTag(parent, image);
|
||||
}
|
||||
}
|
||||
if (thumbLimit > 0 && !dto.HasThumb && (dto.ParentThumbItemId == null || parent is Series))
|
||||
if (thumbLimit > 0 && !dto.HasThumb && (dto.ParentThumbItemId == null || parent is Series) && !(parent is ICollectionFolder) && !(parent is UserView))
|
||||
{
|
||||
var image = allImages.FirstOrDefault(i => i.Type == ImageType.Thumb);
|
||||
|
||||
|
||||
@@ -68,23 +68,14 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||
/// <returns>Task.</returns>
|
||||
public async Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
|
||||
{
|
||||
EventHandler<double> innerProgressHandler = (sender, e) => progress.Report(e * .1);
|
||||
|
||||
// Create a progress object for the update check
|
||||
var innerProgress = new SimpleProgress<double>();
|
||||
innerProgress.ProgressChanged += innerProgressHandler;
|
||||
|
||||
var updateInfo = await _appHost.CheckForApplicationUpdate(cancellationToken, innerProgress).ConfigureAwait(false);
|
||||
|
||||
// Release the event handler
|
||||
innerProgress.ProgressChanged -= innerProgressHandler;
|
||||
var updateInfo = await _appHost.CheckForApplicationUpdate(cancellationToken, new SimpleProgress<double>()).ConfigureAwait(false);
|
||||
|
||||
progress.Report(10);
|
||||
|
||||
if (!updateInfo.IsUpdateAvailable)
|
||||
{
|
||||
Logger.Debug("No application update available.");
|
||||
progress.Report(100);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -96,9 +87,9 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||
{
|
||||
Logger.Info("Update Revision {0} available. Updating...", updateInfo.AvailableVersion);
|
||||
|
||||
innerProgressHandler = (sender, e) => progress.Report(e * .9 + .1);
|
||||
EventHandler<double> innerProgressHandler = (sender, e) => progress.Report(e * .9 + .1);
|
||||
|
||||
innerProgress = new SimpleProgress<double>();
|
||||
var innerProgress = new SimpleProgress<double>();
|
||||
innerProgress.ProgressChanged += innerProgressHandler;
|
||||
|
||||
await _appHost.UpdateApplication(updateInfo.Package, cancellationToken, innerProgress).ConfigureAwait(false);
|
||||
@@ -110,8 +101,6 @@ namespace Emby.Server.Implementations.ScheduledTasks
|
||||
{
|
||||
Logger.Info("A new version of " + _appHost.Name + " is available.");
|
||||
}
|
||||
|
||||
progress.Report(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -513,8 +513,6 @@ namespace Emby.Server.Implementations.Updates
|
||||
CurrentInstallations.Remove(tuple);
|
||||
}
|
||||
|
||||
progress.Report(100);
|
||||
|
||||
CompletedInstallationsInternal.Add(installationInfo);
|
||||
|
||||
EventHelper.FireEventIfNotNull(PackageInstallationCompleted, this, installationEventArgs, _logger);
|
||||
|
||||
Reference in New Issue
Block a user