[erome] send Referer header for file downloads (fixes #1829)

This commit is contained in:
Mike Fährmann
2021-09-08 00:29:16 +02:00
parent 44f572c27f
commit 35d75a4071

View File

@@ -46,9 +46,10 @@ class EromeExtractor(Extractor):
user, pos = text.extract(
page, 'href="https://www.erome.com/', '"', pos)
data = {
"album_id": album_id,
"title" : text.unescape(title),
"user" : text.unquote(user),
"album_id" : album_id,
"title" : text.unescape(title),
"user" : text.unquote(user),
"_http_headers": {"Referer": url},
}
yield Message.Directory, data