From 118cd2c942c12e56948381a7ef6ea46b6c9d2661 Mon Sep 17 00:00:00 2001 From: fl4shforward <93709591+fl4shforward@users.noreply.github.com> Date: Sun, 8 Sep 2024 20:39:43 +0000 Subject: [PATCH] Add files via upload --- __init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index bf8f815..6b09b44 100644 --- a/__init__.py +++ b/__init__.py @@ -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):