From db023c1c33936a2f5f287c808b730ba92d5667ae Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 26 Nov 2023 12:52:20 +0100 Subject: [PATCH] fix: download-icons could also download dds files (#18) We are only interested in PNGs, so filter out all other files. --- download_icons.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_icons.py b/download_icons.py index f5003d0..f5c672b 100644 --- a/download_icons.py +++ b/download_icons.py @@ -21,7 +21,7 @@ for line in resfile.split("\n"): res, path, _, _, _ = line.split(",") - if res.startswith("res:/ui/texture/classes/fitting/"): + if res.endswith(".png") and res.startswith("res:/ui/texture/classes/fitting/"): filename = res.split(":")[1][1:] print(f"Downloading {filename} ...") local_path = "dist/" + filename