Return type of 'gif' for twitter GIFs (#124)

This commit is contained in:
Dylan 2023-08-01 00:26:25 +01:00
parent 879389204e
commit cac3026f2b

View File

@ -169,6 +169,8 @@ def twitfix(sub_path):
media.append(besturl)
extendedInfo["url"] = besturl
extendedInfo["type"] = "video"
if (i["type"] == "animated_gif"):
extendedInfo["type"] = "gif"
altText = None
extendedInfo["size"] = {"width":i["original_info"]["width"],"height":i["original_info"]["height"]}
if "ext_alt_text" in i: