Fix #128 (some tweet text being cut off)
This commit is contained in:
parent
e2f5b4e15d
commit
56f42744b9
@ -602,7 +602,7 @@ def getTemplate(template,vnf,desc,image,video_link,color,urlDesc,urlUser,urlLink
|
||||
def embed(video_link, vnf, image):
|
||||
log.info("Embedding " + vnf['type'] + ": " + video_link)
|
||||
|
||||
desc = re.sub(r' http.*t\.co\S+', '', vnf['description'])
|
||||
desc = re.sub(r' https:\/\/t\.co\/\S+(?=\s|$)', '', vnf['description'])
|
||||
urlUser = urllib.parse.quote(vnf['uploader'])
|
||||
urlDesc = urllib.parse.quote(desc)
|
||||
urlLink = urllib.parse.quote(video_link)
|
||||
|
Loading…
x
Reference in New Issue
Block a user