Skip to content

Commit

Permalink
Release 2.6.1
Browse files Browse the repository at this point in the history
- Allow use of optional environmental variables for Radarr/Sonarr config
- Updated Docker labels
  • Loading branch information
TheCaptain989 committed May 19, 2024
1 parent 8bd9f3f commit 21f3678
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ RUN \
## Single layer deployed image ##
FROM scratch

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

# Add files from buildstage
COPY --from=buildstage /root-layer/ /
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ A [Docker Mod](https://github.com/linuxserver/docker-mods) for the LinuxServer.i
**This unified script works in both Radarr and Sonarr. Use this mod in either container!**
>**NOTE:** This mod supports Linux OSes only.
Container info:
Production Container info: ![Docker Image Size](https://img.shields.io/docker/image-size/linuxserver/mods/radarr-striptracks "Container Size")
Development Container info:
![Docker Image Size](https://img.shields.io/docker/image-size/thecaptain989/radarr-striptracks "Container Size")
![Docker Pulls](https://img.shields.io/docker/pulls/thecaptain989/radarr-striptracks "Container Pulls")
[![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")
Production Container info: ![Docker Image Size](https://img.shields.io/docker/image-size/linuxserver/mods/radarr-striptracks "Container Size")

# Installation
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:
Expand Down
10 changes: 10 additions & 0 deletions root/usr/local/bin/striptracks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,16 @@ elif [ -f "$striptracks_arr_config" ]; then
[[ $striptracks_xml_entity = "ApiKey" ]] && striptracks_apikey=$striptracks_xml_content
done < $striptracks_arr_config

# Allow use of environment variables from https://github.com/Sonarr/Sonarr/pull/6746
striptracks_port_var="${striptracks_type^^}__SERVER__PORT"
[ -n "${!striptracks_port_var}" ] && striptracks_port="${!striptracks_port_var}"
striptracks_urlbase_var="${striptracks_type^^}__SERVER__URLBASE"
[ -n "${!striptracks_urlbase_var}" ] && striptracks_urlbase="${!striptracks_urlbase_var}"
striptracks_bindaddress_var="${striptracks_type^^}__SERVER__BINDADDRESS"
[ -n "${!striptracks_bindaddress_var}" ] && striptracks_bindaddress="${!striptracks_bindaddress_var}"
striptracks_apikey_var="${striptracks_type^^}__AUTH__APIKEY"
[ -n "${!striptracks_apikey_var}" ] && striptracks_apikey="${!striptracks_apikey_var}"

# Check for localhost
[[ $striptracks_bindaddress = "*" ]] && striptracks_bindaddress=localhost

Expand Down

0 comments on commit 21f3678

Please sign in to comment.