Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fl4shforward authored Sep 8, 2024
1 parent 7fd2695 commit 118cd2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def preview_url_picker(self, media_item: dict[str, Any]):
if "files" in media_item:
if (
"preview" in media_item["files"]
and "url" in media_item["files"]["preview"]
and "url" in media_item["files"]["full"]
):
preview_url = media_item["files"]["preview"]["url"]
preview_url = media_item["files"]["full"]["url"]
else:
preview_url = media_item["preview"]
preview_url = media_item["full"]
return urlparse(preview_url) if preview_url else None

def get_author(self):
Expand Down

0 comments on commit 118cd2c

Please sign in to comment.