Merge pull request #6 from RandomNinjaAtk/dev

New beets tagging feature for audio script
pull/7/head
RandomNinjaAtk 5 years ago committed by GitHub
commit e67cd9984c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,6 +15,7 @@ ENV AUDIO_BITRATE 320
ENV AUDIO_REPLAYGAIN FALSE ENV AUDIO_REPLAYGAIN FALSE
ENV AUDIO_DSFA TRUE ENV AUDIO_DSFA TRUE
ENV AUDIO_DSFAS 150M ENV AUDIO_DSFAS 150M
ENV AUDIO_BEETSTAGGING TRUE
# converter settings # converter settings
ENV CONVERTER_THREADS="0" ENV CONVERTER_THREADS="0"
ENV CONVERTER_OUTPUT_FORMAT="mp4" ENV CONVERTER_OUTPUT_FORMAT="mp4"
@ -103,6 +104,10 @@ RUN \
wget \ wget \
python3 \ python3 \
python3-pip && \ python3-pip && \
# Install beets
pip3 install --no-cache-dir -U \
beets \
pyacoustid && \
# make directory # make directory
mkdir -p ${SMA_PATH} && \ mkdir -p ${SMA_PATH} && \
# download repo # download repo

@ -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_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_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_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_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 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 | | `-e CONVERTER_THREADS="0"` | FFMpeg threads, corresponds to threads parameter |
@ -116,10 +117,11 @@ Access the webui at `<your-ip>:8080`, for more information check out [SABnzbd](h
<strong>lidarr</strong> :: Automatically configured to post process using <strong>audio-pp.bash</strong><br/> <strong>lidarr</strong> :: Automatically configured to post process using <strong>audio-pp.bash</strong><br/>
<strong>radarr</strong> :: Automatically configured to post process using <strong>radarr-pp.bash</strong><br/> <strong>radarr</strong> :: Automatically configured to post process using <strong>radarr-pp.bash</strong><br/>
<strong>sonarr</strong> :: Automatically configured to post process using <strong>sonarr-pp.bash</strong><br/> <strong>sonarr</strong> :: Automatically configured to post process using <strong>sonarr-pp.bash</strong><br/>
### Scripts included: ### Scripts/Files included:
<strong>audio-pp.bash</strong> :: Automatically clean up downloaded audio files and convert to standardized format if desired<br/> <strong>audio-pp.bash</strong> :: Automatically clean up downloaded audio files and convert to standardized format if desired<br/>
<strong>radarr-pp.bash</strong> :: Verify incoming video files for required audio/subtitle languages and process with SMA if enabled<br/> <strong>radarr-pp.bash</strong> :: Verify incoming video files for required audio/subtitle languages and process with SMA if enabled<br/>
<strong>sonarr-pp.bash</strong> :: Verify incoming video files for required audio/subtitle languages and process with SMA if enabled<br/><br/> <strong>sonarr-pp.bash</strong> :: Verify incoming video files for required audio/subtitle languages and process with SMA if enabled<br/>
<strong>beets-config.yaml</strong> :: Beet config file for matching<br/><br/>
Scripts are hosted here: https://github.com/RandomNinjaAtk/sabnzbd-scripts Scripts are hosted here: https://github.com/RandomNinjaAtk/sabnzbd-scripts
### Sickbeard MP4 Automater (SMA): ### Sickbeard MP4 Automater (SMA):
<strong>Configuration Files Location:</strong> /config/scritps/configs<br/> <strong>Configuration Files Location:</strong> /config/scritps/configs<br/>

@ -8,6 +8,12 @@ if [ -f "/config/scripts/audio-pp.bash" ]; then
sleep 0.1 sleep 0.1
fi 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 # cp config file for use
if [ ! -f "/config/scripts/audio-pp.bash" ]; then if [ ! -f "/config/scripts/audio-pp.bash" ]; then
cp "/usr/local/sabnzbd-scripts/audio-pp.bash" "/config/scripts/audio-pp.bash" && \ cp "/usr/local/sabnzbd-scripts/audio-pp.bash" "/config/scripts/audio-pp.bash" && \

Loading…
Cancel
Save