From 82d0fb7ab90764d0b458a1f4b1df3673a2ac3aae Mon Sep 17 00:00:00 2001 From: miro Date: Fri, 15 Nov 2024 20:34:24 +0000 Subject: [PATCH] fix: image urls --- ovos_bus_client/apis/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovos_bus_client/apis/gui.py b/ovos_bus_client/apis/gui.py index 9bfece0..e9a76f0 100644 --- a/ovos_bus_client/apis/gui.py +++ b/ovos_bus_client/apis/gui.py @@ -597,7 +597,7 @@ def show_image(self, url: str, caption: Optional[str] = None, False: 'Default' always show animations. """ url = self._resolve_url(url) - if not os.path.isfile(url): + if not url.startswith("http") and not os.path.isfile(url): LOG.error(f"Provided image file does not exist! '{url}'") return self["image"] = url @@ -633,7 +633,7 @@ def show_animated_image(self, url: str, caption: Optional[str] = None, False: 'Default' always show animations. """ url = self._resolve_url(url) - if not os.path.isfile(url): + if not url.startswith("http") and not os.path.isfile(url): LOG.error(f"Provided image file does not exist! '{url}'") return self["image"] = url