Skip to content

Commit

Permalink
[tumblr] sleep between fallback retries (#2957)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Oct 11, 2022
1 parent b2b0b1c commit e5d229c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gallery_dl/extractor/tumblr.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ def _update_image_token(self, resized):
return updated, (resized == updated)

def _original_image_fallback(self, url, post_id):
yield self._update_image_token(url)[0]
yield self._update_image_token(url)[0]
yield self._update_image_token(url)[0]
for _ in range(3):
self.sleep(120, "image token")
yield self._update_image_token(url)[0]
self.log.warning("Unable to fetch higher-resolution "
"version of %s (%s)", url, post_id)

Expand Down

0 comments on commit e5d229c

Please sign in to comment.