Skip to content

Commit

Permalink
[twitter] skip unavailable tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jun 4, 2020
1 parent 41d0316 commit 655c98c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ def _pagination(self, endpoint, params=None,

if entry["entryId"].startswith(entry_tweet):
tid = entry["content"]["item"]["content"]["tweet"]["id"]
if tid not in tweets:
self.extractor.log.debug(
"Skipping unavailable Tweet %s", tid)
continue
tweet = tweets[tid]
tweet["user"] = users[tweet["user_id_str"]]

Expand Down

0 comments on commit 655c98c

Please sign in to comment.