mirror of
https://github.com/Neocky/pluGET.git
synced 2024-04-29 16:12:30 +00:00
Searching for a plugin will now show them in an descending order
This commit is contained in:
parent
0c06db576e
commit
8e41af6ec7
@ -57,7 +57,7 @@ def getVersionName(packageId, versionId):
|
|||||||
|
|
||||||
|
|
||||||
def searchPackage(ressourceName):
|
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)
|
packageName = doAPIRequest(url)
|
||||||
i = 1
|
i = 1
|
||||||
print(f"Searching: {ressourceName}")
|
print(f"Searching: {ressourceName}")
|
||||||
|
Loading…
Reference in New Issue
Block a user