radarr: striptracks Release 2.4

## What's Changed
- **New:** Video remux is now skipped if no tracks will be removed and if file is already an MKV (issue thecaptain989/striptracks#49)
- **New:** Calls the Radarr/Sonarr rename API if required by Movie/Episode naming rules (issue thecaptain989/striptracks#50)
- **New:** Now uses the Radarr/Sonarr API to delete or recycle old videos
- Improved some code that handles differences between Radarr and Sonarr
- All API calls are now functions
- Fixed the detection of all Norwegian codes
- Fixed logging of curl errors and improved error handling
- Removed rescan loop
- Added check for 'queued'  job status
- More consistent ending of script
This commit is contained in:
TheCaptain989 2023-08-27 15:57:45 -05:00
parent c35886d183
commit 4a307cde0c
4 changed files with 667 additions and 304 deletions

View File

@ -1,11 +1,14 @@
# syntax=docker/dockerfile:1
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
ARG MOD_VERSION
# copy local files
COPY root/ /root-layer/
# Add version to script
RUN \
MOD_VERSION="${MOD_VERSION:-unknown}" && \
sed -i -e "s/{{VERSION}}/$MOD_VERSION/" \
@ -17,5 +20,5 @@ FROM scratch
LABEL maintainer="TheCaptain989"
# Copy local files
# Add files from buildstage
COPY --from=buildstage /root-layer/ /

View File

@ -12,9 +12,9 @@ Container info:
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 Docker Hub:
`docker pull linuxserver/radarr:latest` OR
`docker pull linuxserver/sonarr:latest`
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:
`docker pull lscr.io/linuxserver/radarr:latest` OR
`docker pull lscr.io/linuxserver/sonarr:latest`
2. Configure the Docker container with all the port, volume, and environment settings from the *original container documentation* here:
**[linuxserver/radarr](https://hub.docker.com/r/linuxserver/radarr "Radarr Docker container")**
@ -36,7 +36,7 @@ Production Container info: ![Docker Image Size](https://img.shields.io/docker/im
-v /path/to/movies:/movies \
-v /path/to/downloadclient-downloads:/downloads \
--restart unless-stopped \
ghcr.io/linuxserver/radarr
lscr.io/linuxserver/radarr
```
*Example Synology Configuration*
@ -57,11 +57,13 @@ Production Container info: ![Docker Image Size](https://img.shields.io/docker/im
The source video can be any mkvtoolnix supported video format. The output is an MKV file with the same name.
Chapters, if they exist, are preserved. The Title attribute in the MKV is set to the movie title plus year
(ex: `The Sting (1973)`) or the series title plus episode information (ex: `Happy! 01x01 - What Smiles Are For`).
The language of the video file will be updated in the Radarr or Sonarr database to reflect the actual languages preserved in the remuxed video.
The language of the video file will be updated in the Radarr or Sonarr database to reflect the actual languages preserved in the remuxed video.
If you've configured the Radarr/Sonarr **Recycle Bin** path correctly, the original video will be moved there.
![danger] **NOTE:** If you have *not* configured the Recycle Bin, the original video file will be deleted/overwritten and permanently lost.
If the resulting video file would contain the same tracks as the original, the remux step is skipped *unless* the source file is not an MKV.
### Syntax
Beginning with version 2.0 of this mod, the script may be called with no arguments. In this configuration it will detect the language(s) defined in the profile (*Quality Profile* for Radarr, *Language Profile* for Sonarr) configured on the particular movie or TV show.

View File

@ -6,8 +6,8 @@ Only the latest major and minor version are supported.
| Version | Supported |
| ------- | ------------------ |
| 2.3.x | :heavy_check_mark: |
| < 2.3 | :x: |
| 2.4.x | :heavy_check_mark: |
| < 2.4 | :x: |
## Reporting a Vulnerability

File diff suppressed because it is too large Load Diff