Skip to content

Commit e7a37f1

Browse files
authored
Merge pull request #1168 from TheCaptain989/radarr-striptracks
radarr: striptracks release 3.1.0
2 parents c7db5ea + feed1f1 commit e7a37f1

5 files changed

Lines changed: 252 additions & 80 deletions

File tree

‎.github/workflows/BuildImage.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
echo "MULTI_ARCH=${{ env.MULTI_ARCH }}" >> $GITHUB_OUTPUT
3333
if [[ -z "${{ env.MOD_VERSION }}" ]]; then
3434
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
35-
MOD_VERSION="3.0.1"
35+
MOD_VERSION="3.1.0"
3636
else
3737
MOD_VERSION=${{ env.MOD_VERSION }}
3838
echo "MOD_VERSION_OVERRIDE=true" >> $GITHUB_OUTPUT

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ striptracks.sh [{-a|--audio} <audio_languages>[{+|-}modifiers][=name] [{-s|--sub
237237
[--set-default-subs <subtitle_languages>[{+|-}modifiers][=name]]
238238
[{-l|--log} <log_file>]
239239
[{-c|--config} <config_file>]
240+
[--database <database_file>]
240241
[{-p|--priority} {idle|low|medium|high}]
241242
[{-d|--debug} [<level>]]
242243
[--no-ansi]
@@ -257,6 +258,7 @@ Option|Argument|Description
257258
`--set-default-subs`|`<subtitle_languages>[{+\|-}modifiers][=name]`|Set the default subtitles track to the first track the matches, and all other tracks are marked as not default.<br/>Each code may optionally be followed by a plus (`+`) or minus (`-`) and one or more modifiers.<br/>Each code may optionally be followed by an equals (`=`) and a track name matching string.
258259
`-l`, `--log`|`<log_file>`|The log filename<br/>Default is `/config/log/striptracks.txt`
259260
`-c`, `--config`|`<config_file>`|Radarr/Sonarr XML configuration file<br/>Default is `/config/config.xml`
261+
`--database`|`<database_file>`|Radarr/Sonarr SQLite database file<br/>Default is `/config/radarr.db` or `/config/sonarr.db`
260262
`-p`, `--priority`|`idle`, `low`, `medium`, `high`|CPU and I/O process priority for mkvmerge<br/>Default is `medium`<br/>![notes] High priority can consume all system resources. When processing a large video file your system may become unresponsive!
261263
`-d`, `--debug`|`[<level>]`|Enables debug logging. Level is optional.<br/>Default is `1` (low)<br/>`2` includes JSON output<br/>`3` contains even more JSON output
262264
`--no-ansi`||Force disable ANSI color codes in terminal output

‎SECURITY.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Only the latest major and minor version are supported.
66

77
| Version | Supported |
88
| ------- | ------------------ |
9-
| 3.0.x | :heavy_check_mark: |
10-
| < 3.0 | :x: |
9+
| 3.1.x | :heavy_check_mark: |
10+
| < 3.1 | :x: |
1111

1212
## Reporting a Vulnerability
1313

‎root/etc/s6-overlay/s6-rc.d/init-mod-radarr-striptracks-add-package/run‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,24 @@ Version: {{VERSION}}
1212
----------------
1313
EOF
1414

15-
# Determine if setup is needed
16-
if [ ! -f /usr/bin/mkvmerge ]; then
17-
echo "**** Adding striptracks deps to package install list ****"
18-
echo "mkvtoolnix" >> /mod-repo-packages-to-install.list
15+
# Determine if packages need to be installed
16+
commands=(/usr/bin/mkvmerge /usr/bin/sqlite3)
17+
if [ -f /sbin/apk ]; then
18+
# Alpine
19+
packages=(mkvtoolnix sqlite)
1920
else
20-
echo "**** striptracks deps already installed, skipping ****"
21+
# Ubuntu/Debian ('sqlite' is SQLite 2.x, which cannot open SQLite 3 databases)
22+
packages=(mkvtoolnix sqlite3)
2123
fi
24+
for index in "${!commands[@]}"
25+
do
26+
if [ ! -f "${commands[$index]}" ]; then
27+
echo "**** Adding striptracks dependency ${packages[$index]} to package install list ****"
28+
echo "${packages[$index]}" >> /mod-repo-packages-to-install.list
29+
else
30+
echo "**** striptracks dependency ${packages[$index]} already installed, skipping ****"
31+
fi
32+
done
2233

2334
# Check ownership and attributes on each script file
2435
for file in /usr/local/bin/striptracks*.sh

0 commit comments

Comments
 (0)