1
0
mirror of https://github.com/C9Glax/tranga.git synced 2025-04-29 03:32:27 +02:00

add referer to DownloadChapterImages

This commit is contained in:
TheyCallMeTravis 2025-03-14 21:18:51 -05:00 committed by GitHub
parent b00b0ee030
commit 08f26dd21d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -210,6 +210,6 @@ public class Weebcentral : MangaConnector
document.DocumentNode.SelectNodes($"//section[@hx-get='{chapter.url}/images']/img")?.ToArray() ?? [];
string[] urls = imageNodes.Select(imgNode => imgNode.GetAttributeValue("src", "")).ToArray();
return DownloadChapterImages(urls, chapter, RequestType.MangaImage, progressToken: progressToken);
return DownloadChapterImages(urls, chapter, RequestType.MangaImage, progressToken: progressToken, referrer: "https://weebcentral.com/");
}
}