Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/BuildImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
echo "MULTI_ARCH=${{ env.MULTI_ARCH }}" >> $GITHUB_OUTPUT
if [[ -z "${{ env.MOD_VERSION }}" ]]; then
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
MOD_VERSION="3.0.1"
MOD_VERSION="3.1.0"
else
MOD_VERSION=${{ env.MOD_VERSION }}
echo "MOD_VERSION_OVERRIDE=true" >> $GITHUB_OUTPUT
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ striptracks.sh [{-a|--audio} <audio_languages>[{+|-}modifiers][=name] [{-s|--sub
[--set-default-subs <subtitle_languages>[{+|-}modifiers][=name]]
[{-l|--log} <log_file>]
[{-c|--config} <config_file>]
[--database <database_file>]
[{-p|--priority} {idle|low|medium|high}]
[{-d|--debug} [<level>]]
[--no-ansi]
Expand All @@ -257,6 +258,7 @@ Option|Argument|Description
`--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.
`-l`, `--log`|`<log_file>`|The log filename<br/>Default is `/config/log/striptracks.txt`
`-c`, `--config`|`<config_file>`|Radarr/Sonarr XML configuration file<br/>Default is `/config/config.xml`
`--database`|`<database_file>`|Radarr/Sonarr SQLite database file<br/>Default is `/config/radarr.db` or `/config/sonarr.db`
`-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!
`-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
`--no-ansi`||Force disable ANSI color codes in terminal output
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Only the latest major and minor version are supported.

| Version | Supported |
| ------- | ------------------ |
| 3.0.x | :heavy_check_mark: |
| < 3.0 | :x: |
| 3.1.x | :heavy_check_mark: |
| < 3.1 | :x: |

## Reporting a Vulnerability

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,24 @@ Version: {{VERSION}}
----------------
EOF

# Determine if setup is needed
if [ ! -f /usr/bin/mkvmerge ]; then
echo "**** Adding striptracks deps to package install list ****"
echo "mkvtoolnix" >> /mod-repo-packages-to-install.list
# Determine if packages need to be installed
commands=(/usr/bin/mkvmerge /usr/bin/sqlite3)
if [ -f /sbin/apk ]; then
# Alpine
packages=(mkvtoolnix sqlite)
else
echo "**** striptracks deps already installed, skipping ****"
# Ubuntu/Debian ('sqlite' is SQLite 2.x, which cannot open SQLite 3 databases)
packages=(mkvtoolnix sqlite3)
fi
for index in "${!commands[@]}"
do
if [ ! -f "${commands[$index]}" ]; then
echo "**** Adding striptracks dependency ${packages[$index]} to package install list ****"
echo "${packages[$index]}" >> /mod-repo-packages-to-install.list
else
echo "**** striptracks dependency ${packages[$index]} already installed, skipping ****"
fi
done

# Check ownership and attributes on each script file
for file in /usr/local/bin/striptracks*.sh
Expand Down
Loading
Loading