You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AnsiConsole.WriteLine(Markup.Escape($"Skipped synchronizing for Deezer ArtistId '{callback?.ArtistId}' synced already within {_deezerService.PreventUpdateWithinDays}days"));
92
+
tasks.TryAdd(callback.UpdateKey,ctx.AddTask(Markup.Escape($"Updating Deezer Artist '{callback.ArtistName}'")));
93
93
}
94
-
});
95
-
}
96
-
catch(Exceptione)
97
-
{
98
-
Console.WriteLine(e.Message);
99
-
}
100
-
});
101
-
}
94
+
95
+
ProgressTask?task=tasks[callback.UpdateKey];
96
+
97
+
if(task!=null)
98
+
{
99
+
task.MaxValue=callback.AlbumCount;
100
+
task.Value=callback.Progress;
101
+
task.Description=Markup.Escape($"Updating Deezer Artist '{callback.ArtistName}' Albums {callback.Progress} of {callback.AlbumCount}{callback.ExtraInfo}");
AnsiConsole.WriteLine(Markup.Escape($"Skipped synchronizing for Deezer ArtistId '{callback?.ArtistId}' synced already within {_deezerService.PreventUpdateWithinDays}days"));
0 commit comments