From efd0f142786ce8ab4f703df3693d7fad10d3fc57 Mon Sep 17 00:00:00 2001 From: Karol Labus Date: Fri, 18 Sep 2026 00:14:20 +0200 Subject: [PATCH] feat: add configurable multi-threaded parallel scanning for library tasks --- .../Configuration/PluginConfiguration.cs | 3 +++ JellyfinPlugin/Configuration/configPage.html | 8 ++++++ .../Tasks/LibraryForceRescanTask.cs | 22 +++++++++------ .../Tasks/LibraryRetroactiveScanTask.cs | 27 ++++++++++++------- README.md | 7 ++--- 5 files changed, 47 insertions(+), 20 deletions(-) diff --git a/JellyfinPlugin/Configuration/PluginConfiguration.cs b/JellyfinPlugin/Configuration/PluginConfiguration.cs index 2fafcea..8b5b65b 100644 --- a/JellyfinPlugin/Configuration/PluginConfiguration.cs +++ b/JellyfinPlugin/Configuration/PluginConfiguration.cs @@ -12,5 +12,8 @@ namespace JellyfinPlugin.Configuration // Tryb odtwarzania: "Server" (FFmpeg wrapper), "Client" (CSS injection w Web UI), "Auto" (Automatyczny: CSS dla Web, FFmpeg dla aplikacji natywnych) public string PlaybackMode { get; set; } = "Auto"; + + // Maksymalna liczba równoległych wątków skanowania czarnych pasów (1 - 16, domyślnie 4) + public int MaxParallelScans { get; set; } = 4; } } diff --git a/JellyfinPlugin/Configuration/configPage.html b/JellyfinPlugin/Configuration/configPage.html index f500045..1f48195 100644 --- a/JellyfinPlugin/Configuration/configPage.html +++ b/JellyfinPlugin/Configuration/configPage.html @@ -33,6 +33,12 @@
Choose how the plugin should remove black bars. Auto mode uses lightweight CSS clipping for Web browser DirectPlay, and falls back to FFmpeg transcoding for native apps or unsupported video formats.
+
+ + +
Number of files to analyze concurrently during library scheduled tasks. Default is 4. Higher values speed up library scans on multi-core CPUs.
+
+