Skip to content

Commit

Permalink
Allow to configure Radarr v5 automatically.
Browse files Browse the repository at this point in the history
Closes #889
  • Loading branch information
theotherp committed Sep 11, 2023
1 parent a749219 commit c66b70f
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 40 deletions.
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>nzbhydra2</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>core</artifactId>
Expand Down Expand Up @@ -99,7 +99,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>mapping</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</dependency>

<!-- spring (boot) -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private boolean failOnUnknownVersion(AddRequest addRequest) throws IOException {
}
} else if (addRequest.getExternalTool() == AddRequest.ExternalTool.Radarrv3) {
//For some reason some radarr v3 builds return 10.xxx instead of 3.xxx
if (version == null || (!version.startsWith("3") && !version.startsWith("4") && !version.startsWith("10"))) {
if (version == null || (!version.startsWith("3") && !version.startsWith("4") && !version.startsWith("5") && !version.startsWith("10"))) {
messages.add("Error: configuration for v3 but returned version is " + version);
throw new IOException("Error: configuration for v3 but returned version is " + version);
}
Expand Down
6 changes: 6 additions & 0 deletions core/src/main/resources/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#@formatter:off
- version: "v5.1.11"
date: "2023-09-1"
changes:
- type: "fix"
text: "Allow to configure Radarr v5 automatically. See #889"
final: true
- version: "v5.1.10"
date: "2023-07-21"
changes:
Expand Down
31 changes: 16 additions & 15 deletions docker/radarr/data/config.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<Config>
<LogLevel>info</LogLevel>
<UrlBase></UrlBase>
<UpdateMechanism>Docker</UpdateMechanism>
<BindAddress>*</BindAddress>
<Port>7878</Port>
<SslPort>9898</SslPort>
<EnableSsl>False</EnableSsl>
<LaunchBrowser>True</LaunchBrowser>
<ApiKey>apikey</ApiKey>
<AuthenticationMethod>None</AuthenticationMethod>
<Branch>master</Branch>
<SslCertPath></SslCertPath>
<SslCertPassword></SslCertPassword>
<InstanceName>Radarr</InstanceName>
</Config>
<LogLevel>info</LogLevel>
<UrlBase></UrlBase>
<UpdateMechanism>Docker</UpdateMechanism>
<BindAddress>*</BindAddress>
<Port>7878</Port>
<SslPort>9898</SslPort>
<EnableSsl>False</EnableSsl>
<LaunchBrowser>True</LaunchBrowser>
<ApiKey>apikey</ApiKey>
<AuthenticationMethod>Basic</AuthenticationMethod>
<Branch>nightly</Branch>
<SslCertPath></SslCertPath>
<SslCertPassword></SslCertPassword>
<InstanceName>Radarr</InstanceName>
<AuthenticationRequired>DisabledForLocalAddresses</AuthenticationRequired>
</Config>
4 changes: 3 additions & 1 deletion docker/radarr/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
version: "2.1"
services:
radarr:
image: lscr.io/linuxserver/radarr:latest
image: lscr.io/linuxserver/radarr:5.0.2-nightly
container_name: radarr
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- ./data:/config
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 7878:7878
2 changes: 1 addition & 1 deletion other/mockserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>mapping</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>jaxb-impl</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.nzbhydra</groupId>
<artifactId>nzbhydra2</artifactId>
<packaging>pom</packaging>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>

<modules>
<module>shared</module>
Expand Down
4 changes: 2 additions & 2 deletions releases/generic-release/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>releases</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>generic-release</artifactId>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>core</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions releases/linux-amd64-release/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>releases</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>linux-amd64-release</artifactId>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>core</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions releases/linux-arm64-release/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>releases</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>linux-arm64-release</artifactId>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>core</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions releases/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>nzbhydra2</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>releases</artifactId>
<packaging>pom</packaging>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>

<modules>
<module>generic-release</module>
Expand Down
4 changes: 2 additions & 2 deletions releases/windows-release/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>releases</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>windows-release</artifactId>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>core</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions shared/assertions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>shared</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>assertions</artifactId>
Expand All @@ -31,7 +31,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>mapping</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
Expand Down
2 changes: 1 addition & 1 deletion shared/mapping/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>shared</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>mapping</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions shared/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>nzbhydra2</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>shared</artifactId>
<packaging>pom</packaging>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>

<modules>
<module>mapping</module>
Expand Down
2 changes: 1 addition & 1 deletion tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>nzbhydra2</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<artifactId>tests</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions tests/system/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<groupId>org.nzbhydra</groupId>
<artifactId>tests</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</parent>

<groupId>org.nzbhydra.tests</groupId>
Expand Down Expand Up @@ -101,7 +101,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>mapping</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.github.docker-java</groupId>
Expand All @@ -128,7 +128,7 @@
<dependency>
<groupId>org.nzbhydra</groupId>
<artifactId>assertions</artifactId>
<version>5.1.10</version>
<version>5.1.11-SNAPSHOT</version>
</dependency>


Expand Down

0 comments on commit c66b70f

Please sign in to comment.