From 8e41af6ec78a825d862313255939999c85eb7537 Mon Sep 17 00:00:00 2001 From: Neocky Date: Sat, 13 Mar 2021 23:44:01 +0100 Subject: [PATCH] Searching for a plugin will now show them in an descending order --- src/plugin/plugin_downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/plugin_downloader.py b/src/plugin/plugin_downloader.py index 3e65104..0b7bc0e 100644 --- a/src/plugin/plugin_downloader.py +++ b/src/plugin/plugin_downloader.py @@ -57,7 +57,7 @@ def getVersionName(packageId, versionId): def searchPackage(ressourceName): - url = f"https://api.spiget.org/v2/search/resources/{ressourceName}?field=name" + url = f"https://api.spiget.org/v2/search/resources/{ressourceName}?field=name&sort=-downloads" packageName = doAPIRequest(url) i = 1 print(f"Searching: {ressourceName}")