Skip to content

Commit

Permalink
[tumblr] fix inline extraction #2
Browse files Browse the repository at this point in the history
Using only the "comment" field isn't enough ...

[ci skip]
  • Loading branch information
mikf committed Dec 11, 2018
1 parent f6bf66f commit 049a957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/tumblr.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def items(self):
if self.inline and "reblog" in post: # inline media
# only "chat" posts are missing a "reblog" key in their
# API response, but they can't contain images/videos anyway
body = post["reblog"]["comment"]
body = post["reblog"]["comment"] + post["reblog"]["tree_html"]
for url in re.findall('<img src="([^"]+)"', body):
url = _original_inline_image(url)
yield self._prepare_image(url, post)
Expand Down

0 comments on commit 049a957

Please sign in to comment.