fixed wrong url issue on image download

This commit is contained in:
glax 2023-05-18 17:42:26 +02:00
parent ada842957e
commit 8af8171330

View File

@ -167,7 +167,7 @@ public class MangaDex : Connector
JsonArray imageFileNames = result["chapter"]!["data"]!.AsArray();
HashSet<string> imageUrls = new();
foreach (JsonNode image in imageFileNames)
imageUrls.Add($"{baseUrl}/{hash}/{image!.GetValue<string>()}");
imageUrls.Add($"{baseUrl}/data/{hash}/{image!.GetValue<string>()}");
string fileName = string.Concat(publication.sortName.Split(Path.GetInvalidFileNameChars()));