mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
Fixed #898
This commit is contained in:
parent
98a91faf52
commit
ba3db7bbae
2 changed files with 9 additions and 9 deletions
|
@ -123,17 +123,17 @@ namespace Ombi.UI.Modules.Admin
|
|||
var url = Request.Form["url"];
|
||||
var args = (string)Request.Form["args"].ToString();
|
||||
var lowered = args.ToLower();
|
||||
var appPath = Path.Combine(Path.GetDirectoryName(Assembly.GetAssembly(typeof(SystemStatusModule)).Location ?? string.Empty) ?? string.Empty, "PlexRequests.Updater.exe");
|
||||
var appPath = Path.Combine(Path.GetDirectoryName(Assembly.GetAssembly(typeof(SystemStatusModule)).Location ?? string.Empty) ?? string.Empty, "Ombi.Updater.exe");
|
||||
|
||||
if (!string.IsNullOrEmpty(lowered))
|
||||
{
|
||||
if (lowered.Contains("plexrequests.exe"))
|
||||
if (lowered.Contains("ombi.exe"))
|
||||
{
|
||||
lowered = lowered.Replace("plexrequests.exe", "");
|
||||
lowered = lowered.Replace("ombi.exe", "");
|
||||
}
|
||||
}
|
||||
|
||||
var startArgs = string.IsNullOrEmpty(lowered) ? appPath : $"{lowered} Plexrequests.Updater.exe";
|
||||
var startArgs = string.IsNullOrEmpty(lowered) ? appPath : $"{lowered} Ombi.Updater.exe";
|
||||
|
||||
var startInfo = Type.GetType("Mono.Runtime") != null
|
||||
? new ProcessStartInfo(startArgs) { Arguments = $"{url} {lowered}", }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue