You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,18 @@
1
1
# About
2
2
A [Docker Mod](https://github.com/linuxserver/docker-mods) for the LinuxServer.io Radarr/Sonarr v3 or higher Docker containers that adds a script to automatically strip out unwanted audio and subtitle tracks, keeping only the desired languages.
3
3
4
-
**Beginning with version 2.0 of this mod, it only supports v3 or later of Radarr/Sonarr. For legacy Radarr/Sonarr v2 please use mod release 1.3 or earlier**
4
+
**NEW!** There is a now an installer for **hotio** containers! See the [HOTIO.md](./hotio/HOTIO.md) file for more details.
5
5
6
6
**This unified script works in both Radarr and Sonarr. Use this mod in either container!**
7
7
>**NOTE:** This mod supports Linux OSes only.
8
-
8
+
<!-- markdownlint-disable -->
9
9
Production Container info: 
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:
@@ -337,5 +338,8 @@ This would not be possible without the following:
337
338
The AWK script parsing mkvmerge output is adapted from Endoro's post on [VideoHelp](https://forum.videohelp.com/threads/343271-BULK-remove-non-English-tracks-from-MKV-container#post2292889).
338
339
Icons made by [Freepik](https://www.freepik.com) from [Flaticon](https://www.flaticon.com/)
339
340
341
+
## Legacy Change Notes
342
+
Beginning with version 2.0 of this mod, it only supports v3 or later of Radarr/Sonarr. For legacy Radarr/Sonarr v2 please use mod release 1.3 or earlier.
This mod can now be used with [hotio](https://hotio.dev/) containers by using the method described in the hotio [FAQ](https://hotio.dev/faq/#:~:text=I%20would%20like%20to%20execute%20my%20own%20scripts%20on%20startup%2C%20how%20would%20I%20do%20this%3F) to install it.
3
+
(This method relies on s6-overlay v2 behavior still working, though v3 is the current version.)
4
+
5
+
>This is a quick and dirty script with minimal testing or error checking. Note that it only runs *inside* the hotio container.
6
+
7
+
# Installation
8
+
1. Download the **[99-striptracks.sh](./99-striptracks.sh)** install script and save it somewhere that can be mounted by your container.
>**Note:** Notice that no environment variables are used in this setup. That is a specific feature of LSIO containers and is not applicable to hotio containers.
33
+
34
+
1. Add the **99-striptracks.sh** file path as a mount point in your `compose.yml` file or `docker run` command.
35
+
>**Note:** The `/etc/cont-init.d/99-striptracks` path below is important; don't change it!
>**Note:** Please be sure that your mount points for `/config` and `/data` above do not overlap with the newly added mount point!
77
+
78
+
2. Start the container.
79
+
80
+
5. After the container has fully started, continue with Installation step 3 in the previous [README](../README.md#installation).
81
+
82
+
## Requirements
83
+
You must have the **bash** shell available in your host path. You *might* attempt editing the [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) in the 99-striptracks.sh script to get around this, but that is beyond the scope of this document.
84
+
85
+
## Known Problems
86
+
On at least *some* Synology hosts that use the ash shell, this script will cause the container to abort and not start. If this happens, ***check your container logs*** for hints as to what may be wrong.
local striptracks_curlret=$?; [ $striptracks_curlret-ne 0 ] && {
848
+
local striptracks_message=$(echo -e "[$striptracks_curlret] curl error when calling: \"$url\" with data $data\nWeb server returned: $(echo $striptracks_result| jq -jcrM .message?)"| awk '{print "Error|"$0}')
849
+
echo"$striptracks_message"| log
850
+
echo"$striptracks_message">&2
851
+
}
852
+
[ $striptracks_debug-ge 2 ] &&echo"Debug|API returned ${#striptracks_result} bytes."| log
0 commit comments