Plugins are now searched after their downloads

This commit is contained in:
Neocky 2021-03-13 23:32:52 +01:00
parent 3a89064ede
commit 0c06db576e

View File

@ -204,7 +204,7 @@ def updateInstalledPackage(inputSelectedObject='all'):
def getInstalledPlugin(localFileName, localFileVersion): def getInstalledPlugin(localFileName, localFileVersion):
url = "https://api.spiget.org/v2/search/resources/" + localFileName + "?field=name" url = "https://api.spiget.org/v2/search/resources/" + localFileName + "?field=name&sort=-downloads"
packageName = doAPIRequest(url) packageName = doAPIRequest(url)
i = 1 i = 1
plugin_match_found = False plugin_match_found = False