Skip to content

Commit

Permalink
[twitter] don't use youtube-dl for cards when videos are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Apr 1, 2021
1 parent d5aad99 commit ebd142e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _extract_card(self, tweet, files):
if key in bvals:
files.append(bvals[key]["image_value"])
return
else:
elif self.videos:
url = "ytdl:{}/i/web/status/{}".format(self.root, tweet["id_str"])
files.append({"url": url})

Expand Down

0 comments on commit ebd142e

Please sign in to comment.