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.
This commit is contained in:
Robbie Davis 2026-01-14 20:12:49 -05:00
parent 6f55c81d5b
commit 22f582af07
2 changed files with 6 additions and 6 deletions

View file

@ -16,9 +16,9 @@ public class ListenarrV1ProxyFixture : TestBase<ListenarrV1Proxy>
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<IHttpClient>()
.Setup(c => c.Execute(It.IsAny<HttpRequest>()))

View file

@ -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")]