Skip to content

Commit

Permalink
Revert "[twitter] improve strategy for user URLs (#2665)"
Browse files Browse the repository at this point in the history
'user_tweets_and_replies' was a mistake
  • Loading branch information
mikf committed Jun 28, 2022
1 parent 3a5d5c3 commit 7b073bf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,8 @@ def __init__(self, match):
self.user = "id:" + user_id

def tweets(self):
if self.retweets or self.textonly:
tweets = (self.api.user_tweets_and_replies if self.replies else
self.api.user_tweets)
else:
tweets = self.api.user_media
tweets = (self.api.user_tweets if self.retweets else
self.api.user_media)

# yield initial batch of (media) tweets
tweet = None
Expand Down

0 comments on commit 7b073bf

Please sign in to comment.