diff --git a/Dockerfile b/Dockerfile index f04c8fe..63f748c 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" @@ -103,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 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
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" && \