Skip to content

Commit

Permalink
[twitter] don't download video previews (#833)
Browse files Browse the repository at this point in the history
when 'videos' is set to False
  • Loading branch information
mikf committed Jun 16, 2020
1 parent bb882b8 commit b943941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ def items(self):
tdata["width"] = media["original_info"].get("width", 0)
tdata["height"] = media["original_info"].get("height", 0)

if "video_info" in media and self.videos:
if "video_info" in media:

if self.videos == "ytdl":
url = "ytdl:{}/i/web/status/{}".format(
self.root, tweet["id_str"])
tdata["extension"] = None
yield Message.Url, url, tdata

else:
elif self.videos:
video_info = media["video_info"]
variant = max(
video_info["variants"],
Expand Down

0 comments on commit b943941

Please sign in to comment.