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.

This commit is contained in:
IAmParadox27 committed 2025-08-20 01:03:50 +01:00
1 parent 2f3b9d4f32
commit a5cfdfebd9
1 file changed
+4 -1
@@ -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<double> 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<JObject> payloads = new List<JObject>();