spigot relies on CF... so we need to use the /proxy downloads

This commit is contained in:
Firepup Sixfifty 2024-09-18 21:39:49 -05:00
parent 441c811b84
commit 694179cdb0
Signed by: Firepup650
SSH key fingerprint: SHA256:cb8sEJwc0kQJ6/nMUhscWRe35itf0NFMdSKl3v4qt48

View file

@ -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(