From 891db049af0de4d40df3eaabe67d12952a036224 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 27 May 2022 23:18:58 +0100 Subject: [PATCH] Fixed incorrect TTL being set --- twitfix.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index 16b1a68..b02b716 100644 --- a/twitfix.py +++ b/twitfix.py @@ -293,7 +293,9 @@ def embed_video(video_link, image=0): # Return Embed from any tweet link else: return embed(video_link, cached_vnf, image) -def tweetInfo(url, tweet="", desc="", thumb="", uploader="", screen_name="", pfp="", tweetType="", images="", hits=0, likes=0, rts=0, time="", qrt={}, nsfw=False,ttl=getDefaultTTL()): # Return a dict of video info with default values +def tweetInfo(url, tweet="", desc="", thumb="", uploader="", screen_name="", pfp="", tweetType="", images="", hits=0, likes=0, rts=0, time="", qrt={}, nsfw=False,ttl=None): # Return a dict of video info with default values + if (ttl==None): + ttl = getDefaultTTL() vnf = { "tweet" : tweet, "url" : url,