fixed wrong url issue on image download
This commit is contained in:
parent
ada842957e
commit
8af8171330
@ -167,7 +167,7 @@ public class MangaDex : Connector
|
|||||||
JsonArray imageFileNames = result["chapter"]!["data"]!.AsArray();
|
JsonArray imageFileNames = result["chapter"]!["data"]!.AsArray();
|
||||||
HashSet<string> imageUrls = new();
|
HashSet<string> imageUrls = new();
|
||||||
foreach (JsonNode image in imageFileNames)
|
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()));
|
string fileName = string.Concat(publication.sortName.Split(Path.GetInvalidFileNameChars()));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user