mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -128,7 +128,7 @@ namespace Jackett.Updater
|
||||
|
||||
private void ProcessUpdate(UpdaterConsoleOptions options)
|
||||
{
|
||||
var updateLocation = GetUpdateLocation();
|
||||
var updateLocation = EnvironmentUtil.JackettInstallationPath();
|
||||
if (!(updateLocation.EndsWith("\\") || updateLocation.EndsWith("/")))
|
||||
updateLocation += Path.DirectorySeparatorChar;
|
||||
|
||||
@@ -608,15 +608,6 @@ namespace Jackett.Updater
|
||||
return success;
|
||||
}
|
||||
|
||||
private string GetUpdateLocation()
|
||||
{
|
||||
// Use EscapedCodeBase to avoid Uri reserved characters from causing bugs
|
||||
// https://stackoverflow.com/questions/896572
|
||||
var location = new Uri(Assembly.GetEntryAssembly().GetName().EscapedCodeBase);
|
||||
// Use LocalPath instead of AbsolutePath to avoid needing to unescape Uri format.
|
||||
return new FileInfo(location.LocalPath).DirectoryName;
|
||||
}
|
||||
|
||||
private string GetJackettConsolePath(string directoryPath)
|
||||
{
|
||||
var variants = new Variants();
|
||||
|
Reference in New Issue
Block a user