lidarr-dl/readarr/setup.bash
catduckgnaf 0a9a8545be Adding Script to Combine MP3 Post Download to M4B
This "should" work. It is a new script that will be designed for audiobooks. I included ffmpeg in the build itself, verse a docker mod.  The goal of this script is to recreate what calibre-server does for metadata, Assuming this PR is approved (and I may need some help) I want to add tone and metadata. This is a good first step by combining multiple mp3s and even m4bs into one clean file.
2023-12-08 14:46:21 -05:00

45 lines
1.6 KiB
Bash

#!/usr/bin/with-contenv bash
echo "************ install and update packages ************"
apk add -U --update --no-cache \
jq \
py3-pip \
ffmpeg
echo "************ install python packages ************"
pip install --upgrade --no-cache-dir -U yq
mkdir -p /custom-services.d
echo "Download AutoConfig service..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/AutoConfig.bash -o /custom-services.d/AutoConfig
echo "Done"
echo "Download QueueCleaner service..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal/services/QueueCleaner -o /custom-services.d/QueueCleaner
echo "Done"
mkdir -p /config/extended
echo "Download Script Functions..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal/functions.bash -o /config/extended/functions
echo "Done"
echo "Download PlexNotify script..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/PlexNotify.bash -o /config/extended/PlexNotify.bash
echo "Done"
echo "Download combine script..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/combine.bash -o /config/extended/combine.bash
echo "Done"
echo "Download AutoConfig config..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/AutoConfig.json -o /config/extended/AutoConfig.json
echo "Done"
chmod 777 -R /config/extended
if [ ! -f /config/extended.conf ]; then
echo "Download Extended config..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/readarr/extended.conf -o /config/extended.conf
chmod 777 /config/extended.conf
echo "Done"
fi
exit