Skip to content

Commit

Permalink
[mangafox] send Referer headers (#2592)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed May 15, 2022
1 parent 90d2838 commit 3fd9249
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gallery_dl/extractor/mangafox.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

# Copyright 2017-2021 Mike Fährmann
# Copyright 2017-2022 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -34,6 +34,7 @@ def __init__(self, match):
base, self.cstr, self.volume, self.chapter, self.minor = match.groups()
self.urlbase = self.root + base
ChapterExtractor.__init__(self, match, self.urlbase + "/1.html")
self.session.headers["Referer"] = self.root + "/"

def metadata(self, page):
manga, pos = text.extract(page, "<title>", "</title>")
Expand Down

0 comments on commit 3fd9249

Please sign in to comment.