Skip to content

Commit

Permalink
[nitter] ignore invalid Tweets (#5253)
Browse files Browse the repository at this point in the history
like "Load newest"
  • Loading branch information
mikf committed Feb 29, 2024
1 parent 76581c1 commit 1db0a58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gallery_dl/extractor/nitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ def _pagination(self, path):
self.user_obj = self._user_from_html(tweets_html[0])

for html, quote in map(self._extract_quote, tweets_html[1:]):
yield self._tweet_from_html(html)
tweet = self._tweet_from_html(html)
if not tweet["date"]:
continue
yield tweet
if quoted and quote:
yield self._tweet_from_quote(quote)

Expand Down

0 comments on commit 1db0a58

Please sign in to comment.