mirror of
https://github.com/Neocky/pluGET.git
synced 2024-04-29 16:12:30 +00:00
Fixed wrong folder was used when trying to download plugin
Changes: - fixed wrong folder use while downloading plugins - made code a little bit cleaner
This commit is contained in:
parent
1e7b30a1be
commit
42be836928
@ -78,19 +78,17 @@ def searchPackage(ressourceName):
|
|||||||
ressourceSelected = ressourceSelected - 1
|
ressourceSelected = ressourceSelected - 1
|
||||||
ressourceId = packageName[ressourceSelected]["id"]
|
ressourceId = packageName[ressourceSelected]["id"]
|
||||||
if not configValues.localPluginFolder:
|
if not configValues.localPluginFolder:
|
||||||
try:
|
|
||||||
if configValues.sftp_seperateDownloadPath is True:
|
if configValues.sftp_seperateDownloadPath is True:
|
||||||
getSpecificPackage(ressourceId, configValues.sftp_pathToSeperateDownloadPath)
|
pluginDownloadPath = configValues.sftp_pathToSeperateDownloadPath
|
||||||
else:
|
else:
|
||||||
getSpecificPackage(ressourceId, configValues.sftp_folderPath)
|
pluginDownloadPath = configValues.sftp_folderPath
|
||||||
except HTTPError as err:
|
|
||||||
print(oColors.brightRed + f"Error: {err.code} - {err.reason}" + oColors.standardWhite)
|
|
||||||
else:
|
else:
|
||||||
try:
|
|
||||||
if configValues.seperateDownloadPath is True:
|
if configValues.seperateDownloadPath is True:
|
||||||
getSpecificPackage(ressourceId, configValues.pathToPluginFolder)
|
pluginDownloadPath = configValues.pathToSeperateDownloadPath
|
||||||
else:
|
else:
|
||||||
getSpecificPackage(ressourceId, configValues.pathToSeperateDownloadPath)
|
pluginDownloadPath = configValues.pathToPluginFolder
|
||||||
|
try:
|
||||||
|
getSpecificPackage(ressourceId, pluginDownloadPath)
|
||||||
except HTTPError as err:
|
except HTTPError as err:
|
||||||
print(oColors.brightRed + f"Error: {err.code} - {err.reason}" + oColors.standardWhite)
|
print(oColors.brightRed + f"Error: {err.code} - {err.reason}" + oColors.standardWhite)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user