From 7954cb014a1a9dafc2f8b28afcd06ab5ca456afe Mon Sep 17 00:00:00 2001 From: jerrry08 Date: Thu, 1 Feb 2024 09:38:53 -0400 Subject: [PATCH] Add headers to MangaPill images --- Juro.Providers/Manga/MangaPill.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Juro.Providers/Manga/MangaPill.cs b/Juro.Providers/Manga/MangaPill.cs index 3406af9..e9832bf 100644 --- a/Juro.Providers/Manga/MangaPill.cs +++ b/Juro.Providers/Manga/MangaPill.cs @@ -152,7 +152,12 @@ public async ValueTask> GetChapterPagesAsync( .DocumentNode.SelectNodes(".//img[@class='js-page']") .Select(el => (IMangaChapterPage) - new MangaChapterPage() { Image = el.Attributes["data-src"]!.Value, Page = i++ } + new MangaChapterPage() + { + Image = el.Attributes["data-src"]!.Value, + Headers = new() { { "Referer", BaseUrl } }, + Page = i++ + } ) .ToList(); }