discord redirect hack for .mp4

This commit is contained in:
Cynthia Foxwell 2025-12-08 18:27:32 -07:00
parent 0bc6b33251
commit 413882f650
No known key found for this signature in database

View File

@ -228,7 +228,7 @@ proc createStatusRouter*(cfg: Config) =
# images = @[card.video.get().thumb]
if rawVideo and video != "":
redirect(video)
redirect(video.replace("https://video.twimg.com", getUrlPrefix(cfg) & "/tvid").replace(".mp4", ""))
elif rawImage and images.len > 0:
if media == "photo" and mediaIndex.len > 0:
var index = parseInt(mediaIndex)