1
0
mirror of https://github.com/C9Glax/tranga.git synced 2025-04-14 20:33:19 +02:00

Merge pull request from TheyCallMeTravis/WeebCentral-add_referrer

WeebCentral - add referer to DownloadChapterImages
This commit is contained in:
Glax 2025-03-15 10:24:28 +01:00 committed by GitHub
commit 67fd9d284b
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/");
}
}