fix: scale progress report to percentage.

This commit is contained in:
redxef 2024-11-19 16:57:04 +01:00
parent 45844cafec
commit 24b3d41df5
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -162,7 +162,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.ScheduledTasks {
await ClearPlaylist(playlist); await ClearPlaylist(playlist);
await _playlistManager.AddItemToPlaylistAsync(playlist.Id, insertItems, playlistLink.UserId); await _playlistManager.AddItemToPlaylistAsync(playlist.Id, insertItems, playlistLink.UserId);
i += 1; i += 1;
progress.Report(((double)i)/dto.Playlists.Count()); progress.Report(100 * ((double)i)/dto.Playlists.Count());
} }
} }
} }