fix image suffix

This commit is contained in:
2024-03-22 21:32:32 +08:00
parent a38c1b05b4
commit 76e0ffe58c
+1 -1
View File
@@ -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