mirror of
https://github.com/Neocky/pluGET.git
synced 2024-04-29 16:12:30 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
496334a2fa | ||
![]() |
42be836928 |
@@ -78,21 +78,19 @@ 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:
|
pluginDownloadPath = configValues.sftp_pathToSeperateDownloadPath
|
||||||
getSpecificPackage(ressourceId, configValues.sftp_pathToSeperateDownloadPath)
|
else:
|
||||||
else:
|
pluginDownloadPath = configValues.sftp_folderPath
|
||||||
getSpecificPackage(ressourceId, 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:
|
pluginDownloadPath = configValues.pathToSeperateDownloadPath
|
||||||
getSpecificPackage(ressourceId, configValues.pathToPluginFolder)
|
else:
|
||||||
else:
|
pluginDownloadPath = configValues.pathToPluginFolder
|
||||||
getSpecificPackage(ressourceId, configValues.pathToSeperateDownloadPath)
|
try:
|
||||||
except HTTPError as err:
|
getSpecificPackage(ressourceId, pluginDownloadPath)
|
||||||
print(oColors.brightRed + f"Error: {err.code} - {err.reason}" + oColors.standardWhite)
|
except HTTPError as err:
|
||||||
|
print(oColors.brightRed + f"Error: {err.code} - {err.reason}" + oColors.standardWhite)
|
||||||
|
|
||||||
|
|
||||||
def downloadSpecificVersion(ressourceId, downloadPath, versionID='latest'):
|
def downloadSpecificVersion(ressourceId, downloadPath, versionID='latest'):
|
||||||
|
@@ -155,11 +155,7 @@ def checkInstalledPackage(inputSelectedObject="all", inputOptionalParam=None):
|
|||||||
try:
|
try:
|
||||||
for plugin in track(pluginList, description="Checking for updates" ,transient=True, complete_style="bright_yellow"):
|
for plugin in track(pluginList, description="Checking for updates" ,transient=True, complete_style="bright_yellow"):
|
||||||
if not configValues.localPluginFolder:
|
if not configValues.localPluginFolder:
|
||||||
if configValues.sftp_seperateDownloadPath is True:
|
pluginFile = f"{configValues.sftp_folderPath}/{plugin}"
|
||||||
pluginFile = f"{configValues.sftp_pathToSeperateDownloadPath}/{plugin}"
|
|
||||||
else:
|
|
||||||
pluginFile = f"{configValues.sftp_folderPath}/{plugin}"
|
|
||||||
|
|
||||||
if configValues.sftp_useSftp:
|
if configValues.sftp_useSftp:
|
||||||
pluginAttributes = sftp_validateFileAttributes(connection, pluginFile)
|
pluginAttributes = sftp_validateFileAttributes(connection, pluginFile)
|
||||||
if pluginAttributes == False:
|
if pluginAttributes == False:
|
||||||
|
Reference in New Issue
Block a user