From 39122e85bf8accd5ccbf74d0d9e198e54917cf8a Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 26 Mar 2020 10:16:23 -0400 Subject: [PATCH 1/5] Update Dockerfile --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index f04c8fe..94a76cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -116,6 +116,10 @@ RUN \ # install pip, venv, and set up a virtual self contained python environment python3 -m pip install --user --upgrade pip && \ pip3 install -r ${SMA_PATH}/setup/requirements.txt + # Install beets + pip3 install --no-cache-dir -U \ + beets \ + pyacoustid RUN \ # ffmpeg From f9e89750310d1147206554ec43ead68995553d78 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 26 Mar 2020 10:21:37 -0400 Subject: [PATCH 2/5] Add beets config file --- root/etc/cont-init.d/33-script-setup.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/root/etc/cont-init.d/33-script-setup.bash b/root/etc/cont-init.d/33-script-setup.bash index 7d52853..ab399bd 100644 --- a/root/etc/cont-init.d/33-script-setup.bash +++ b/root/etc/cont-init.d/33-script-setup.bash @@ -8,6 +8,12 @@ if [ -f "/config/scripts/audio-pp.bash" ]; then sleep 0.1 fi +# cp config file for use +if [ ! -f "/config/scripts/beets-config.yaml" ]; then + cp "/usr/local/sabnzbd-scripts/beets-config.yaml" "/config/scripts/beets-config.yaml" && \ + chmod 0666 "/config/scripts/beets-config.yaml" +fi + # cp config file for use if [ ! -f "/config/scripts/audio-pp.bash" ]; then cp "/usr/local/sabnzbd-scripts/audio-pp.bash" "/config/scripts/audio-pp.bash" && \ From d94bf3287bfb92e47b40ce2c0fb812f7f2571534 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 26 Mar 2020 10:28:18 -0400 Subject: [PATCH 3/5] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 94a76cd..7720af7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ ENV AUDIO_BITRATE 320 ENV AUDIO_REPLAYGAIN FALSE ENV AUDIO_DSFA TRUE ENV AUDIO_DSFAS 150M +ENV AUDIO_BEETSTAGGING TRUE # converter settings ENV CONVERTER_THREADS="0" ENV CONVERTER_OUTPUT_FORMAT="mp4" From 15e4a15ba1791c2a8f3824617e35f486cd5674b6 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 26 Mar 2020 11:04:49 -0400 Subject: [PATCH 4/5] Update Dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7720af7..63f748c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -104,6 +104,10 @@ RUN \ wget \ python3 \ python3-pip && \ + # Install beets + pip3 install --no-cache-dir -U \ + beets \ + pyacoustid && \ # make directory mkdir -p ${SMA_PATH} && \ # download repo @@ -117,10 +121,6 @@ RUN \ # install pip, venv, and set up a virtual self contained python environment python3 -m pip install --user --upgrade pip && \ pip3 install -r ${SMA_PATH}/setup/requirements.txt - # Install beets - pip3 install --no-cache-dir -U \ - beets \ - pyacoustid RUN \ # ffmpeg From 37184a9d9c3a8b762ada344be3e729d4f9f6cbf6 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 26 Mar 2020 12:35:28 -0400 Subject: [PATCH 5/5] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e3b214..2e40ba9 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ Container images are configured using parameters passed at runtime (such as thos | `-e AUDIO_VERIFY=TRUE` | TRUE = ENABLED, Verifies FLAC/MP3 files for errors (fixes MP3's, deletes bad FLAC files) | | `-e AUDIO_DSFA=TRUE` | TRUE = ENABLED :: Detects single file albums and mark download as failed if detected | | `-e AUDIO_REPLAYGAIN=FALSE` | TRUE = ENABLED, adds replaygain tags for compatible players (FLAC ONLY) | +| `-e AUDIO_BEETSTAGGING=TRUE` | TRUE = ENABLED, use beets to tag files | | `-e VIDEO_LANG=eng` | Default: eng :: Set to required language (ISO 639-2 language code), if not found, will mark as failed | | `-e VIDEO_SMA=FALSE` | TRUE = Enabled :: Uses SMA to process incoming video files, update your configuraiton at: /config/scripts/configs/(radarr/sonarr)-pp.ini | | `-e CONVERTER_THREADS="0"` | FFMpeg threads, corresponds to threads parameter | @@ -116,10 +117,11 @@ Access the webui at `:8080`, for more information check out [SABnzbd](h lidarr :: Automatically configured to post process using audio-pp.bash
radarr :: Automatically configured to post process using radarr-pp.bash
sonarr :: Automatically configured to post process using sonarr-pp.bash
-### Scripts included: +### Scripts/Files included: audio-pp.bash :: Automatically clean up downloaded audio files and convert to standardized format if desired
radarr-pp.bash :: Verify incoming video files for required audio/subtitle languages and process with SMA if enabled
-sonarr-pp.bash :: Verify incoming video files for required audio/subtitle languages and process with SMA if enabled

+sonarr-pp.bash :: Verify incoming video files for required audio/subtitle languages and process with SMA if enabled
+beets-config.yaml :: Beet config file for matching

Scripts are hosted here: https://github.com/RandomNinjaAtk/sabnzbd-scripts ### Sickbeard MP4 Automater (SMA): Configuration Files Location: /config/scritps/configs