diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py index 7cabb8c168..2e4ef42ed3 100644 --- a/gallery_dl/extractor/twitter.py +++ b/gallery_dl/extractor/twitter.py @@ -60,7 +60,7 @@ 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( @@ -68,7 +68,7 @@ def items(self): tdata["extension"] = None yield Message.Url, url, tdata - else: + elif self.videos: video_info = media["video_info"] variant = max( video_info["variants"],