mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 03:02:50 +01:00
[twitter] use filter:links (#2766)
This commit is contained in:
parent
8d0801ad8e
commit
1540d0e695
@ -466,10 +466,7 @@ class TwitterTimelineExtractor(TwitterExtractor):
|
||||
if not self.textonly:
|
||||
# try to search for media-only tweets
|
||||
tweet = None
|
||||
for tweet in self.api.search_adaptive(query + (
|
||||
" (filter:images OR"
|
||||
" filter:native_video OR"
|
||||
" card_name:animated_gif)")):
|
||||
for tweet in self.api.search_adaptive(query + " filter:links"):
|
||||
yield tweet
|
||||
if tweet is not None:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user