From eeb163021133141bc6ea14e4fef173cadff98754 Mon Sep 17 00:00:00 2001 From: Chloe Carver-Brown Date: Thu, 26 May 2022 18:49:48 +0100 Subject: [PATCH] Fuck you baltimore Signed-off-by: Chloe Carver-Brown --- twitfix.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/twitfix.py b/twitfix.py index d0c1220..6bf5520 100644 --- a/twitfix.py +++ b/twitfix.py @@ -339,14 +339,7 @@ def twitfix(sub_path): ) elif ( - request.url.endswith("/1") - or request.url.endswith("/2") - or request.url.endswith("/3") - or request.url.endswith("/4") - or request.url.endswith("%2F1") - or request.url.endswith("%2F2") - or request.url.endswith("%2F3") - or request.url.endswith("%2F4") + request.url.endswith("/1", "/2", "/3", "/4", "%2F1", "%2F2", "%2F3", "%2F4") ): twitter_url = "https://twitter.com/" + sub_path @@ -359,14 +352,7 @@ def twitfix(sub_path): return embed_video(clean, image) elif ( - request.url.endswith("/1p") - or request.url.endswith("/2p") - or request.url.endswith("/3p") - or request.url.endswith("/4p") - or request.url.endswith("%2F1p") - or request.url.endswith("%2F2p") - or request.url.endswith("%2F3p") - or request.url.endswith("%2F4p") + request.url.endswith("/1p", "/2p", "/3p", "/4p", "%2F1p", "%2F2p", "%2F3p", "%2F4p") ): twitter_url = "https://twitter.com/" + sub_path