mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[twitter] raise error for invalid 'strategy' values (#4953)
This commit is contained in:
parent
516c69297d
commit
9fa4f54c24
@ -552,9 +552,11 @@ class TwitterTimelineExtractor(TwitterExtractor):
|
||||
return self.api.user_media
|
||||
if strategy == "tweets":
|
||||
return self.api.user_tweets
|
||||
if strategy == "media":
|
||||
return self.api.user_media
|
||||
if strategy == "with_replies":
|
||||
return self.api.user_tweets_and_replies
|
||||
return self.api.user_media
|
||||
raise exception.StopExtraction("Invalid strategy '%s'", strategy)
|
||||
|
||||
|
||||
class TwitterTweetsExtractor(TwitterExtractor):
|
||||
|
Loading…
Reference in New Issue
Block a user