mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-07-01 00:24:16 +02:00
Changed taskProgress increment to call method that updates progress accordingly (with parent-tasks being also updated)
This commit is contained in:
@ -183,7 +183,7 @@ public abstract class Connector
|
||||
string extension = split[^1];
|
||||
logger?.WriteLine("Connector", $"Downloading Image {chapter + 1:000}/{imageUrls.Length:000} {parentTask.publication.sortName} {parentTask.publication.internalId} Vol.{parentTask.chapter.volumeNumber} Ch.{parentTask.chapter.chapterNumber} {parentTask.progress:P2}");
|
||||
DownloadImage(imageUrl, Path.Join(tempFolder, $"{chapter++}.{extension}"), requestType, referrer);
|
||||
parentTask.progress += 1f / imageUrls.Length;
|
||||
parentTask.IncrementProgress(1f / imageUrls.Length);
|
||||
}
|
||||
|
||||
if(comicInfoPath is not null)
|
||||
|
Reference in New Issue
Block a user