From a3407467c2dc1066ec28ebc0e55dcc45c36484e7 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 6 Oct 2022 01:30:39 +0100 Subject: [PATCH] Fixed missing video descriptions --- twitfix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitfix.py b/twitfix.py index 6546236..c86ab4b 100644 --- a/twitfix.py +++ b/twitfix.py @@ -429,10 +429,10 @@ def embed(video_link, vnf, image): image = vnf['images'][image] template = 'image.html' if vnf['type'] == "Video": - #urlDesc = urllib.parse.quote(textwrap.shorten(desc, width=220, placeholder="...")) + urlDesc = urllib.parse.quote(textwrap.shorten(desc, width=220, placeholder="...")) template = 'video.html' if vnf['type'] == "": - #urlDesc = urllib.parse.quote(textwrap.shorten(desc, width=220, placeholder="...")) + urlDesc = urllib.parse.quote(textwrap.shorten(desc, width=220, placeholder="...")) template = 'video.html' color = "#7FFFD4" # Green