Skip to content

Commit 21f3678

Browse files
committed
Release 2.6.1
- Allow use of optional environmental variables for Radarr/Sonarr config - Updated Docker labels
1 parent 8bd9f3f commit 21f3678

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ RUN \
1818
## Single layer deployed image ##
1919
FROM scratch
2020

21-
LABEL maintainer="TheCaptain989"
21+
LABEL org.opencontainers.image.source=https://github.com/TheCaptain989/radarr-striptracks
22+
LABEL org.opencontainers.image.description="A Docker Mod to Radarr/Sonarr to automatically strip out unwanted audio and subtitle streams"
23+
LABEL org.opencontainers.image.licenses=GPL-3.0-only
24+
LABEL org.opencontainers.image.authors="TheCaptain989"
2225

2326
# Add files from buildstage
2427
COPY --from=buildstage /root-layer/ /

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ A [Docker Mod](https://github.com/linuxserver/docker-mods) for the LinuxServer.i
66
**This unified script works in both Radarr and Sonarr. Use this mod in either container!**
77
>**NOTE:** This mod supports Linux OSes only.
88
9-
Container info:
9+
Production Container info: ![Docker Image Size](https://img.shields.io/docker/image-size/linuxserver/mods/radarr-striptracks "Container Size")
10+
Development Container info:
1011
![Docker Image Size](https://img.shields.io/docker/image-size/thecaptain989/radarr-striptracks "Container Size")
1112
![Docker Pulls](https://img.shields.io/docker/pulls/thecaptain989/radarr-striptracks "Container Pulls")
1213
[![GitHub Super-Linter](https://github.com/TheCaptain989/radarr-striptracks/actions/workflows/linter.yml/badge.svg)](https://github.com/TheCaptain989/radarr-striptracks/actions/workflows/linter.yml "Linter Job")
13-
Production Container info: ![Docker Image Size](https://img.shields.io/docker/image-size/linuxserver/mods/radarr-striptracks "Container Size")
1414

1515
# Installation
1616
1. Pull your selected container ([linuxserver/radarr](https://hub.docker.com/r/linuxserver/radarr "LinuxServer.io's Radarr container") or [linuxserver/sonarr](https://hub.docker.com/r/linuxserver/sonarr "LinuxServer.io's Sonarr container")) from GitHub Container Registry or Docker Hub:

root/usr/local/bin/striptracks.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,16 @@ elif [ -f "$striptracks_arr_config" ]; then
911911
[[ $striptracks_xml_entity = "ApiKey" ]] && striptracks_apikey=$striptracks_xml_content
912912
done < $striptracks_arr_config
913913

914+
# Allow use of environment variables from https://github.com/Sonarr/Sonarr/pull/6746
915+
striptracks_port_var="${striptracks_type^^}__SERVER__PORT"
916+
[ -n "${!striptracks_port_var}" ] && striptracks_port="${!striptracks_port_var}"
917+
striptracks_urlbase_var="${striptracks_type^^}__SERVER__URLBASE"
918+
[ -n "${!striptracks_urlbase_var}" ] && striptracks_urlbase="${!striptracks_urlbase_var}"
919+
striptracks_bindaddress_var="${striptracks_type^^}__SERVER__BINDADDRESS"
920+
[ -n "${!striptracks_bindaddress_var}" ] && striptracks_bindaddress="${!striptracks_bindaddress_var}"
921+
striptracks_apikey_var="${striptracks_type^^}__AUTH__APIKEY"
922+
[ -n "${!striptracks_apikey_var}" ] && striptracks_apikey="${!striptracks_apikey_var}"
923+
914924
# Check for localhost
915925
[[ $striptracks_bindaddress = "*" ]] && striptracks_bindaddress=localhost
916926

0 commit comments

Comments
 (0)