Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilgames32 committed Aug 26, 2024
1 parent c5f06a5 commit dc4c8e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion posts/supported.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
from posts.post import Post, PostType
from posts.post import Post
from posts.twitterpost import Tweet
from posts.redditpost import RedditPost
from posts.pixivpost import PixivPost
Expand Down
3 changes: 2 additions & 1 deletion posts/twitterpost.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class Tweet(Post):
_platform = "Twitter"
_prefix = "@"

async def fetch(self):
async def fetch(self):
photo = None
photopattern = r"https://[^/]+/([^/]+)/status/(\d+)/photo/(\d+)"
match = re.search(photopattern, self._url)
if match:
Expand Down

0 comments on commit dc4c8e1

Please sign in to comment.