diff --git a/twitfix.py b/twitfix.py index a11a2c7..8b946f9 100644 --- a/twitfix.py +++ b/twitfix.py @@ -68,8 +68,9 @@ def twitfix(sub_path): clean = twitter_url[:-4] else: clean = twitter_url - vid = requests.get(direct_video_link(clean)) - return Response(vid.content,mimetype="video/mp4") + #vid = requests.get(direct_video_link(clean)) + #return Response(vid.content,mimetype="video/mp4") keeping this here in case Discord changes their mind & blocks 307's + return redirect(direct_video_link(clean),code=307) # Discord, why do you fail to play 301/302 redirected URLS with .mp4 at the end??? else: return message("To use a direct MP4 link in discord, remove anything past '?' and put '.mp4' at the end") else: