Skip to content

Commit

Permalink
[sexcom] set Referer header for file downloads (closes #464)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Nov 3, 2019
1 parent 2a3bd4e commit f15eedb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gallery_dl/extractor/sexcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class SexcomExtractor(Extractor):
root = "https://www.sex.com"

def items(self):
self.session.headers["Referer"] = self.root
yield Message.Version, 1
yield Message.Directory, self.metadata()
for pin in map(self._parse_pin, self.pins()):
Expand Down Expand Up @@ -102,6 +103,7 @@ class SexcomPinExtractor(SexcomExtractor):
# picture
("https://www.sex.com/pin/56714360/", {
"url": "599190d6e3d79f9f49dda194a0a58cb0ffa3ab86",
"content": "963ed681cf53904173c7581b713c7f9471f04db0",
"keyword": {
"comments": int,
"date": "2018-10-02T21:18:17-04:00",
Expand Down

0 comments on commit f15eedb

Please sign in to comment.