Add PluginServiceRegistrator for DI and translate logs to English

This commit is contained in:
2026-09-17 15:18:45 +02:00
parent 18b4a71a2f
commit 5aff92d296
2 changed files with 23 additions and 3 deletions
@@ -33,7 +33,7 @@ namespace JellyfinPlugin.Tasks
var config = Plugin.Instance!.Configuration;
if (!config.IsEnabled)
{
_logger.LogInformation("Wtyczka wyłączona. Pomijanie.");
_logger.LogInformation("Plugin is disabled. Skipping.");
return;
}
@@ -73,11 +73,11 @@ namespace JellyfinPlugin.Tasks
await _libraryManager.UpdateItemAsync(item, item, ItemUpdateType.MetadataEdit, cancellationToken);
if (!string.IsNullOrEmpty(cropData))
_logger.LogInformation("Znaleziono pasy {Crop} w {Path}", cropData, path);
_logger.LogInformation("Found black bars {Crop} in {Path}", cropData, path);
}
catch (Exception ex)
{
_logger.LogError(ex, "Błąd skanowania pliku {Path}", path);
_logger.LogError(ex, "Error scanning file {Path}", path);
}
}