Skip to content

Commit

Permalink
Add headers to MangaPill images
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry08 committed Feb 1, 2024
1 parent 284a7c0 commit 7954cb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Juro.Providers/Manga/MangaPill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ public async ValueTask<List<IMangaChapterPage>> 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();
}
Expand Down

0 comments on commit 7954cb0

Please sign in to comment.