From 76e0ffe58c2850028b5e47a0ce277d05300c8f8a Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Fri, 22 Mar 2024 21:32:32 +0800 Subject: [PATCH] fix image suffix --- tweet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweet.py b/tweet.py index dc8cf64..f36cbbb 100644 --- a/tweet.py +++ b/tweet.py @@ -34,7 +34,7 @@ class TweetMedia: def _uri(self) -> str | None: match = x_media_regex.match(self._url) if match: - return match.group(2).removesuffix('.jpg') + return match.group(2).removesuffix('.jpg').removesuffix('.png') return None @property