From 8f6e4a0a0950ae138159b1600cdc92ae072d7b5a Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 4 Feb 2023 23:25:54 +0000 Subject: [PATCH] Combine multiple tweet images by default (#40) --- twitfix.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/twitfix.py b/twitfix.py index 9703b1a..fc7043e 100644 --- a/twitfix.py +++ b/twitfix.py @@ -78,17 +78,6 @@ def twitfix(sub_path): else: print(" ➤ [ R ] Redirect to MP4 using d.fxtwitter.com") return dir(sub_path) - elif request.url.startswith("https://c.vx") or request.url.endswith('/all'): - twitter_url = sub_path - - if match.start() == 0: - twitter_url = "https://twitter.com/" + sub_path - - if user_agent in generate_embed_user_agents: - return embedCombined(twitter_url) - else: - print(" ➤ [ R ] Redirect to " + twitter_url) - return redirect(twitter_url, 301) elif request.url.endswith(".mp4") or request.url.endswith("%2Emp4"): twitter_url = "https://twitter.com/" + sub_path @@ -122,7 +111,7 @@ def twitfix(sub_path): twitter_url = "https://twitter.com/" + sub_path if user_agent in generate_embed_user_agents: - res = embed_video(twitter_url) + res = embedCombined(twitter_url) return res else: