1
0
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:
Mike Fährmann 2022-07-26 18:59:22 +02:00
parent 8d0801ad8e
commit 1540d0e695
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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