Now adding ComicInfo.xml to chapterse

This commit is contained in:
2023-05-20 00:19:04 +02:00
parent 68b40e087e
commit a3520dfd77
2 changed files with 19 additions and 2 deletions

View File

@ -197,8 +197,11 @@ public class MangaDex : Connector
foreach (JsonNode? image in imageFileNames)
imageUrls.Add($"{baseUrl}/data/{hash}/{image!.GetValue<string>()}");
string comicInfoPath = Path.GetTempFileName();
File.WriteAllText(comicInfoPath, CreateComicInfo(publication, chapter));
//Download Chapter-Images
DownloadChapterImages(imageUrls.ToArray(), Path.Join(downloadLocation, publication.folderName, chapter.fileName), this.downloadClient);
DownloadChapterImages(imageUrls.ToArray(), Path.Join(downloadLocation, publication.folderName, chapter.fileName), this.downloadClient, comicInfoPath);
}
public override void DownloadCover(Publication publication)