From a5cfdfebd990e9a74fda973eae01e5adf4250dfc Mon Sep 17 00:00:00 2001 From: IAmParadox27 Date: Wed, 12 Feb 2025 23:25:58 +0000 Subject: [PATCH] Added 5 second delay to the startup script for all plugins to ensure that file transformation would be ready to receive requests when it starts. --- src/Jellyfin.Plugin.MediaBar/Services/StartupService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Jellyfin.Plugin.MediaBar/Services/StartupService.cs b/src/Jellyfin.Plugin.MediaBar/Services/StartupService.cs index 4b2ffe8..8b65539 100644 --- a/src/Jellyfin.Plugin.MediaBar/Services/StartupService.cs +++ b/src/Jellyfin.Plugin.MediaBar/Services/StartupService.cs @@ -1,4 +1,5 @@ -using System.Net.Http.Headers; +using System.Net; +using System.Net.Http.Headers; using System.Reflection; using MediaBrowser.Common.Configuration; using MediaBrowser.Controller; @@ -31,6 +32,8 @@ namespace Jellyfin.Plugin.MediaBar.Services public async Task ExecuteAsync(IProgress progress, CancellationToken cancellationToken) { m_logger.LogInformation($"MediaBar Startup. Registering file transformations."); + m_logger.LogInformation("Delaying 5 seconds to ensure file transformation is ready to receive requests."); + await Task.Delay(TimeSpan.FromSeconds(5), cancellationToken); List payloads = new List();