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,