From 9f2fef5f9370f5d9233b8a4c34218fb2dc0d1062 Mon Sep 17 00:00:00 2001 From: seria Date: Thu, 2 Jan 2025 09:41:23 +0800 Subject: [PATCH] fix: Fix invalid url for WebEvent --- genshin/models/hoyolab/web_event.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/genshin/models/hoyolab/web_event.py b/genshin/models/hoyolab/web_event.py index dc1009ab..df27a7ab 100644 --- a/genshin/models/hoyolab/web_event.py +++ b/genshin/models/hoyolab/web_event.py @@ -24,4 +24,6 @@ class WebEvent(APIModel): @property def url(self) -> str: + if "https" in self.web_path: + return self.web_path return f"https://www.hoyolab.com{self.web_path}"