From 22f582af076761a24c6cd0b9dfe61ddda7734b44 Mon Sep 17 00:00:00 2001 From: Robbie Davis Date: Wed, 14 Jan 2026 20:12:49 -0500 Subject: [PATCH] Update Listenarr server default port to 4545 Changed the default Listenarr server port from 5000 to 4545 in both the settings placeholder and related test cases to reflect the new standard port configuration. --- .../Applications/Listenarr/ListenarrV1ProxyFixture.cs | 10 +++++----- .../Applications/Listenarr/ListenarrSettings.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NzbDrone.Core.Test/Applications/Listenarr/ListenarrV1ProxyFixture.cs b/src/NzbDrone.Core.Test/Applications/Listenarr/ListenarrV1ProxyFixture.cs index 4a9014c7b..fbc9007e8 100644 --- a/src/NzbDrone.Core.Test/Applications/Listenarr/ListenarrV1ProxyFixture.cs +++ b/src/NzbDrone.Core.Test/Applications/Listenarr/ListenarrV1ProxyFixture.cs @@ -16,9 +16,9 @@ public class ListenarrV1ProxyFixture : TestBase public void GetIndexers_should_deserialize_json_and_set_api_key_header() { // Arrange - var settings = new ListenarrSettings { BaseUrl = "http://localhost:5000", ApiKey = "abc123" }; + var settings = new ListenarrSettings { BaseUrl = "http://localhost:4545", ApiKey = "abc123" }; - var json = "[ { \"id\": 42, \"name\": \"Test\", \"implementation\": \"Newznab\", \"fields\": [ { \"name\": \"baseUrl\", \"value\": \"http://localhost:5000/1/api\" }, { \"name\": \"apiKey\", \"value\": \"x\" } ] } ]"; + var json = "[ { \"id\": 42, \"name\": \"Test\", \"implementation\": \"Newznab\", \"fields\": [ { \"name\": \"baseUrl\", \"value\": \"http://localhost:4545/1/api\" }, { \"name\": \"apiKey\", \"value\": \"x\" } ] } ]"; HttpRequest capturedRequest = null; @@ -46,7 +46,7 @@ public void GetIndexers_should_deserialize_json_and_set_api_key_header() public void GetIndexerSchema_should_handle_single_object_response_with_fields_object() { // Arrange - var settings = new ListenarrSettings { BaseUrl = "http://localhost:5000", ApiKey = "abc123" }; + var settings = new ListenarrSettings { BaseUrl = "http://localhost:4545", ApiKey = "abc123" }; // Schema returned as an object with fields as an object (name -> definition) var json = "{ \"id\": 1, \"implementation\": \"Newznab\", \"fields\": { \"baseUrl\": { \"type\": \"text\" }, \"apiKey\": { \"type\": \"text\" } } }"; @@ -71,7 +71,7 @@ public void GetIndexerSchema_should_handle_single_object_response_with_fields_ob public void GetIndexerSchema_should_expand_implementations_array_into_multiple_schemas() { // Arrange - var settings = new ListenarrSettings { BaseUrl = "http://localhost:5000", ApiKey = "abc123" }; + var settings = new ListenarrSettings { BaseUrl = "http://localhost:4545", ApiKey = "abc123" }; var json = "{ \"fields\": [ { \"name\": \"baseUrl\", \"type\": \"text\" } ], \"implementations\": [\"Newznab\",\"Torznab\"] }"; @@ -93,7 +93,7 @@ public void GetIndexerSchema_should_expand_implementations_array_into_multiple_s public void Execute_should_throw_application_exception_when_unauthorized() { // Arrange - var settings = new ListenarrSettings { BaseUrl = "http://localhost:5000", ApiKey = "bad" }; + var settings = new ListenarrSettings { BaseUrl = "http://localhost:4545", ApiKey = "bad" }; Mocker.GetMock() .Setup(c => c.Execute(It.IsAny())) diff --git a/src/NzbDrone.Core/Applications/Listenarr/ListenarrSettings.cs b/src/NzbDrone.Core/Applications/Listenarr/ListenarrSettings.cs index 339872a73..03ffad6f8 100644 --- a/src/NzbDrone.Core/Applications/Listenarr/ListenarrSettings.cs +++ b/src/NzbDrone.Core/Applications/Listenarr/ListenarrSettings.cs @@ -30,7 +30,7 @@ public ListenarrSettings() [FieldDefinition(0, Label = "Prowlarr Server", HelpText = "Prowlarr server URL as Listenarr sees it, including http(s)://, port, and urlbase if needed", Placeholder = "http://localhost:9696")] public string ProwlarrUrl { get; set; } - [FieldDefinition(1, Label = "Listenarr Server", HelpText = "URL used to connect to Listenarr server, including http(s)://, port, and urlbase if required", Placeholder = "http://localhost:5000")] + [FieldDefinition(1, Label = "Listenarr Server", HelpText = "URL used to connect to Listenarr server, including http(s)://, port, and urlbase if required", Placeholder = "http://localhost:4545")] public string BaseUrl { get; set; } [FieldDefinition(2, Label = "API Key", Privacy = PrivacyLevel.ApiKey, HelpText = "The ApiKey generated by Listenarr in Settings/General")]