Skip to content

Commit

Permalink
[tumblr] use s3.amazonaws.com for image URLs (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jan 9, 2018
1 parent 9a8e98f commit 75b2e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/tumblr.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def _original_image(url):
return url
return re.sub(
(r"https?://\d+\.media\.tumblr\.com"
r"/([0-9a-f]+)/tumblr_([^/?&#.]+)_\d+\.([0-9a-z]+)"),
r"http://data.tumblr.com/\1/tumblr_\2_raw.\3", url
r"/([0-9a-f]+/tumblr_[^/?&#.]+)_\d+\.([0-9a-z]+)"),
r"https://s3.amazonaws.com/data.tumblr.com/\1_raw.\2", url
)


Expand Down

0 comments on commit 75b2e84

Please sign in to comment.