mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
fix image suffix
This commit is contained in:
@@ -34,7 +34,7 @@ class TweetMedia:
|
|||||||
def _uri(self) -> str | None:
|
def _uri(self) -> str | None:
|
||||||
match = x_media_regex.match(self._url)
|
match = x_media_regex.match(self._url)
|
||||||
if match:
|
if match:
|
||||||
return match.group(2).removesuffix('.jpg')
|
return match.group(2).removesuffix('.jpg').removesuffix('.png')
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user