From 3fb9ef1e773e5b8979bea80ecdd7b79bddf52e1c Mon Sep 17 00:00:00 2001 From: Syuugo Date: Thu, 25 Aug 2022 18:46:37 +0900 Subject: [PATCH] Fix some strings --- scripts/generateGappsLink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generateGappsLink.py b/scripts/generateGappsLink.py index cdb1d08..d773488 100644 --- a/scripts/generateGappsLink.py +++ b/scripts/generateGappsLink.py @@ -31,7 +31,7 @@ arch = sys.argv[1] variant = sys.argv[2] download_dir = Path.cwd().parent / "download" if sys.argv[3] == "" else Path(sys.argv[3]).resolve() tempScript = sys.argv[4] -print(f"Generating OpenGapps download link: arch={arch} variant={variant}", flush=True) +print(f"Generating OpenGApps download link: arch={arch} variant={variant}", flush=True) abi_map = {"x64": "x86_64", "arm64": "arm64"} # TODO: keep it 11.0 since opengapps does not support 12+ yet # As soon as opengapps is available for 12+, we need to get the sdk/release from build.prop and @@ -43,7 +43,7 @@ try: link = {i["name"]: i for i in j["archs"][abi_map[arch]] ["apis"][release]["variants"]}[variant]["zip"] except Exception: - print("Failed to fetch from opengapps api, fallbacking to sourceforge rss...") + print("Failed to fetch from OpenGApps API, fallbacking to SourceForge RSS...") res = requests.get( f'https://sourceforge.net/projects/opengapps/rss?path=/{abi_map[arch]}&limit=100') link = re.search(f'https://.*{abi_map[arch]}/.*{release}.*{variant}.*\.zip/download', res.text).group().replace(