From 694179cdb0dde82a5a60c99144e2aee21e3b356e Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Wed, 18 Sep 2024 21:39:49 -0500 Subject: [PATCH] spigot relies on CF... so we need to use the /proxy downloads --- update-plugins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update-plugins.py b/update-plugins.py index bfc42ff..6457cba 100644 --- a/update-plugins.py +++ b/update-plugins.py @@ -84,7 +84,8 @@ if spigotPlugins: f.write( request( "GET", - f"https://api.spiget.org/v2/resources/{plugin}/versions/{version}/download", + f"https://api.spiget.org/v2/resources/{plugin}/versions/{version}/download/proxy", + allow_redirects=True, ).content ) if knownVersions.get(plugin, "") and path.exists(