mirror of
https://github.com/Jackett/Jackett
synced 2025-01-01 12:46:23 +00:00
Bug fix
This commit is contained in:
commit
f045a1f350
5 changed files with 30 additions and 21 deletions
|
@ -22,14 +22,17 @@ namespace JackettConsole
|
|||
{
|
||||
switch (args[0].ToLowerInvariant())
|
||||
{
|
||||
case "/i":
|
||||
case "/i": // install
|
||||
Engine.ServiceConfig.Install();
|
||||
return;
|
||||
case "/r":
|
||||
Engine.Server.ReserveUrls();
|
||||
case "/r": // reserve port/url & install
|
||||
Engine.Server.ReserveUrls(doInstall: true);
|
||||
return;
|
||||
case "/u":
|
||||
Engine.Server.ReserveUrls(false);
|
||||
case "/c": // change port
|
||||
Engine.Server.ReserveUrls(doInstall: false);
|
||||
return;
|
||||
case "/u": // uninstall
|
||||
Engine.Server.ReserveUrls(doInstall: false);
|
||||
Engine.ServiceConfig.Uninstall();
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.22823.1
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.31101.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jackett", "Jackett\Jackett.csproj", "{E636D5F8-68B4-4903-B4ED-CCFD9C9E899F}"
|
||||
EndProject
|
||||
|
@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CurlSharp", "CurlSharp\Curl
|
|||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BE7B0C8A-6144-47CD-821E-B09BA1B7BADE}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
..\Build.bat = ..\Build.bat
|
||||
..\Installer.iss = ..\Installer.iss
|
||||
..\LICENSE = ..\LICENSE
|
||||
..\README.md = ..\README.md
|
||||
EndProjectSection
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace Jackett.Indexers
|
|||
base(name: "RARBG",
|
||||
description: "RARBG",
|
||||
link: new Uri("https://rarbg.com"),
|
||||
rageid: true,
|
||||
rageid: false,
|
||||
manager: i,
|
||||
logger: l)
|
||||
{
|
||||
|
|
|
@ -66,9 +66,13 @@ namespace Jackett.Services
|
|||
{
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(destFolder));
|
||||
}
|
||||
if (!File.Exists(destFolder))
|
||||
{
|
||||
File.Move(file, destFolder);
|
||||
}
|
||||
}
|
||||
Directory.Delete(oldDir, true);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue