From b80e96090e66d05131d610224a3222caa476b542 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Sun, 1 Oct 2023 04:56:04 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20hacks-gu?= =?UTF-8?q?ide/Guide=5F3DS@f89b68461394390a33f59a5f2f578261b58fc981=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clean_translations.py | 25 +++++++++++++++++++++++++ feed.xml | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 clean_translations.py diff --git a/clean_translations.py b/clean_translations.py new file mode 100644 index 0000000000..4594a5f328 --- /dev/null +++ b/clean_translations.py @@ -0,0 +1,25 @@ +import os + + +files_in_main = [] +files_in_main_include = [] + + +for i in os.listdir("_pages/en_US/"): + files_in_main.append(i) + +for i in os.listdir("_pages/en_US/include"): + files_in_main_include.append(i) + +for i in os.listdir("_pages/"): + if i == "en_US": + continue + for j in os.listdir(f"_pages/{i}"): + if j == "include": + for k in os.listdir(f"_pages/{i}/include"): + if k not in files_in_main_include: + print(f"Deleting _pages/{i}/include/{k}") + os.remove(f"_pages/{i}/include/{k}") + elif j not in files_in_main: + print(f"Deleting _pages/{i}/{j}") + os.remove(f"_pages/{i}/{j}") diff --git a/feed.xml b/feed.xml index c6207c5c73..a348efc9d0 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -Jekyll2023-09-30T16:54:42+00:00https://3ds.hacks.guide/feed.xml3DS Hacks GuideA complete guide to 3DS custom firmwareNintendo Homebrew \ No newline at end of file +Jekyll2023-10-01T04:55:48+00:00https://3ds.hacks.guide/feed.xml3DS Hacks GuideA complete guide to 3DS custom firmwareNintendo Homebrew \ No newline at end of file