From b731830fae9fbf02aea5c18a940fa075677a059e Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Thu, 30 Nov 2023 20:21:06 +0100 Subject: [PATCH] feat: add shared and windowicons from the UI category (#23) --- download_icons.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/download_icons.py b/download_icons.py index f5c672b..0fa083d 100644 --- a/download_icons.py +++ b/download_icons.py @@ -1,7 +1,13 @@ import os import requests -import shutil -import sys + +folders = [ + "res:/ui/texture/classes/fitting", + "res:/ui/texture/classes/fitting/statsicons", + "res:/ui/texture/shared", + "res:/ui/texture/windowicons", +] + latest = requests.get("https://binaries.eveonline.com/eveclient_TQ.json").json() build = latest["build"] @@ -21,7 +27,9 @@ for line in resfile.split("\n"): res, path, _, _, _ = line.split(",") - if res.endswith(".png") and res.startswith("res:/ui/texture/classes/fitting/"): + dirname = os.path.dirname(res) + + if res.endswith(".png") and dirname in folders: filename = res.split(":")[1][1:] print(f"Downloading {filename} ...") local_path = "dist/" + filename