From 5cb8d479f513a07f0ccb8c41be06095abc37aae9 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 16 May 2023 15:40:34 +0100 Subject: [PATCH] Fixed QRTs sometimes failing to embed --- msgs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msgs.py b/msgs.py index 7203334..52aded5 100644 --- a/msgs.py +++ b/msgs.py @@ -23,7 +23,7 @@ def genPollDisplay(poll): def formatEmbedDesc(type,body,qrt,pollDisplay,likesDisplay): # Trim the embed description to 248 characters, prioritizing poll and likes - limit = videoDescLimit if type=="" or type=="Video" else tweetDescLimit + limit = videoDescLimit if type=="" or type=="Video" or (qrt!=None and (qrt["type"]=="" or qrt["type"]=="Video")) else tweetDescLimit output = "" if pollDisplay==None: