mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-05 02:14:17 +02:00
Create Publication Folder and replace downloaded files if necessary.
This commit is contained in:
@ -178,9 +178,9 @@ public class MangaDex : Connector
|
||||
foreach (JsonNode image in imageFileNames)
|
||||
imageUrls.Add($"{baseUrl}/data/{hash}/{image!.GetValue<string>()}");
|
||||
|
||||
string fileName = string.Concat(publication.sortName.Split(Path.GetInvalidFileNameChars()));
|
||||
string seriesFolder = string.Concat(publication.sortName.Split(Path.GetInvalidPathChars()));
|
||||
|
||||
DownloadChapter(imageUrls.ToArray(), Path.Join(downloadLocation, fileName));
|
||||
DownloadChapter(imageUrls.ToArray(), Path.Join(downloadLocation, seriesFolder, chapter.relativeFilePath));
|
||||
}
|
||||
|
||||
internal override void DownloadImage(string url, string path)
|
||||
|
Reference in New Issue
Block a user