From 35bf48497d1d0f91a3c45a2736d329299456f44c Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Wed, 20 Nov 2024 05:37:59 +0000 Subject: [PATCH] chore: change default asset url --- enkanetwork/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/enkanetwork/utils.py b/enkanetwork/utils.py index 32a3371..736bc1c 100644 --- a/enkanetwork/utils.py +++ b/enkanetwork/utils.py @@ -40,6 +40,7 @@ # Base URL BASE_URL = "https://enka.network/{PATH}" +YATTA_URL = "https://gi.yatta.moe/assets/{PATH}" # Request CHUNK_SIZE = 5 * 2**20 @@ -47,11 +48,11 @@ def create_path(path: str) -> str: - return BASE_URL.format(PATH=path) + return YATTA_URL.format(PATH=path) def create_ui_path(filename: str) -> str: - return create_path(f"ui/{filename}.png") + return create_path(f"UI/{filename}.png") def validate_uid(uid: str) -> bool: