From 24b3d41df52ca9127403169b77b7d7a019bccfa6 Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 19 Nov 2024 16:57:04 +0100 Subject: [PATCH] fix: scale progress report to percentage. --- .../ScheduledTasks/GeneratePlaylist.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs b/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs index 5343abf..4af2d60 100644 --- a/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs +++ b/Jellyfin.Plugin.SmartPlaylist/ScheduledTasks/GeneratePlaylist.cs @@ -162,7 +162,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.ScheduledTasks { await ClearPlaylist(playlist); await _playlistManager.AddItemToPlaylistAsync(playlist.Id, insertItems, playlistLink.UserId); i += 1; - progress.Report(((double)i)/dto.Playlists.Count()); + progress.Report(100 * ((double)i)/dto.Playlists.Count()); } } }