mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Allow Sonarr and Radarr to run together.
Also changes default port of Radarr to 7878. However, now multiple instances of Radarr can also be run. This should be fixed in the future.
This commit is contained in:
parent
6ca88f98af
commit
e9f9f66b2f
8 changed files with 12 additions and 12 deletions
|
@ -40,7 +40,7 @@ namespace NzbDrone.Automation.Test
|
||||||
_runner.KillAll();
|
_runner.KillAll();
|
||||||
_runner.Start();
|
_runner.Start();
|
||||||
|
|
||||||
driver.Url = "http://localhost:8989";
|
driver.Url = "http://localhost:7878";
|
||||||
|
|
||||||
var page = new PageBase(driver);
|
var page = new PageBase(driver);
|
||||||
page.WaitForNoSpinner();
|
page.WaitForNoSpinner();
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace NzbDrone.Common.Test
|
||||||
public void GetValue_Success()
|
public void GetValue_Success()
|
||||||
{
|
{
|
||||||
const string key = "Port";
|
const string key = "Port";
|
||||||
const string value = "8989";
|
const string value = "7878";
|
||||||
|
|
||||||
var result = Subject.GetValue(key, value);
|
var result = Subject.GetValue(key, value);
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ namespace NzbDrone.Common.Test
|
||||||
public void GetInt_Success()
|
public void GetInt_Success()
|
||||||
{
|
{
|
||||||
const string key = "Port";
|
const string key = "Port";
|
||||||
const int value = 8989;
|
const int value = 7878;
|
||||||
|
|
||||||
|
|
||||||
var result = Subject.GetValueInt(key, value);
|
var result = Subject.GetValueInt(key, value);
|
||||||
|
@ -95,7 +95,7 @@ namespace NzbDrone.Common.Test
|
||||||
[Test]
|
[Test]
|
||||||
public void GetPort_Success()
|
public void GetPort_Success()
|
||||||
{
|
{
|
||||||
const int value = 8989;
|
const int value = 7878;
|
||||||
|
|
||||||
|
|
||||||
var result = Subject.Port;
|
var result = Subject.Port;
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace NzbDrone.Console
|
||||||
{
|
{
|
||||||
System.Console.WriteLine("");
|
System.Console.WriteLine("");
|
||||||
System.Console.WriteLine("");
|
System.Console.WriteLine("");
|
||||||
Logger.Fatal(exception.Message + ". This can happen if another instance of Sonarr is already running another application is using the same port (default: 8989) or the user has insufficient permissions");
|
Logger.Fatal(exception.Message + ". This can happen if another instance of Sonarr is already running another application is using the same port (default: 7878) or the user has insufficient permissions");
|
||||||
System.Console.WriteLine("Press enter to exit...");
|
System.Console.WriteLine("Press enter to exit...");
|
||||||
System.Console.ReadLine();
|
System.Console.ReadLine();
|
||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
|
|
|
@ -133,7 +133,7 @@ namespace NzbDrone.Core.Configuration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Port => GetValueInt("Port", 8989);
|
public int Port => GetValueInt("Port", 7878);
|
||||||
|
|
||||||
public int SslPort => GetValueInt("SslPort", 9898);
|
public int SslPort => GetValueInt("SslPort", 9898);
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,9 @@ namespace NzbDrone.Host
|
||||||
{
|
{
|
||||||
if (IsAlreadyRunning())
|
if (IsAlreadyRunning())
|
||||||
{
|
{
|
||||||
_logger.Warn("Another instance of Sonarr is already running.");
|
_logger.Warn("Another instance of Sonarr or Radarr is already running.");
|
||||||
_browserService.LaunchWebUI();
|
_browserService.LaunchWebUI();
|
||||||
throw new TerminateApplicationException("Another instance is already running");
|
//throw new TerminateApplicationException("Another instance is already running"); TODO: detect only radarr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace NzbDrone.Integration.Test
|
||||||
|
|
||||||
public override string SeriesRootFolder => GetTempDirectory("SeriesRootFolder");
|
public override string SeriesRootFolder => GetTempDirectory("SeriesRootFolder");
|
||||||
|
|
||||||
protected override string RootUrl => "http://localhost:8989/";
|
protected override string RootUrl => "http://localhost:7878/";
|
||||||
|
|
||||||
protected override string ApiKey => _runner.ApiKey;
|
protected override string ApiKey => _runner.ApiKey;
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ namespace NzbDrone.Integration.Test
|
||||||
protected void ConnectSignalR()
|
protected void ConnectSignalR()
|
||||||
{
|
{
|
||||||
_signalRReceived = new List<SignalRMessage>();
|
_signalRReceived = new List<SignalRMessage>();
|
||||||
_signalrConnection = new Connection("http://localhost:8989/signalr");
|
_signalrConnection = new Connection("http://localhost:7878/signalr");
|
||||||
_signalrConnection.Start(new LongPollingTransport()).ContinueWith(task =>
|
_signalrConnection.Start(new LongPollingTransport()).ContinueWith(task =>
|
||||||
{
|
{
|
||||||
if (task.IsFaulted)
|
if (task.IsFaulted)
|
||||||
|
|
|
@ -22,10 +22,10 @@ namespace NzbDrone.Test.Common
|
||||||
public string AppData { get; private set; }
|
public string AppData { get; private set; }
|
||||||
public string ApiKey { get; private set; }
|
public string ApiKey { get; private set; }
|
||||||
|
|
||||||
public NzbDroneRunner(Logger logger, int port = 8989)
|
public NzbDroneRunner(Logger logger, int port = 7878)
|
||||||
{
|
{
|
||||||
_processProvider = new ProcessProvider(logger);
|
_processProvider = new ProcessProvider(logger);
|
||||||
_restClient = new RestClient("http://localhost:8989/api");
|
_restClient = new RestClient("http://localhost:7878/api");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue