1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[patreon] fix '403 Forbidden' errors

send 'Content-Type' headers for API requests
This commit is contained in:
Mike Fährmann 2022-12-01 09:52:36 +01:00
parent b4253f69c9
commit c19b1f03b9
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -103,7 +103,10 @@ class PatreonExtractor(Extractor):
"""Return all relevant post objects"""
def _pagination(self, url):
headers = {"Referer": self.root}
headers = {
"Referer" : self.root + "/",
"Content-Type": "application/vnd.api+json",
}
while url:
url = text.ensure_http_scheme(url)