Skip to content

Commit

Permalink
chore: change default asset url
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao authored Nov 20, 2024
1 parent 7b57d6f commit 35bf484
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions enkanetwork/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,19 @@

# Base URL
BASE_URL = "https://enka.network/{PATH}"
YATTA_URL = "https://gi.yatta.moe/assets/{PATH}"

# Request
CHUNK_SIZE = 5 * 2**20
RETRY_MAX = 10


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:
Expand Down

0 comments on commit 35bf484

Please sign in to comment.