Revert formatting changes

This commit is contained in:
Kieran Eglin 2024-08-26 12:09:31 -07:00
parent 9326a80c98
commit 132fa97b3f
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -2,7 +2,7 @@
SMA_PATH="/usr/local/sma" SMA_PATH="/usr/local/sma"
version="1.3" version="1.3"
echo "*** install packages ***" && echo "*** install packages ***" && \
apk add -U --upgrade --no-cache \ apk add -U --upgrade --no-cache \
tidyhtml \ tidyhtml \
musl-locales \ musl-locales \
@ -18,11 +18,11 @@ echo "*** install packages ***" &&
python3-dev \ python3-dev \
libc-dev \ libc-dev \
py3-pip \ py3-pip \
npm && npm && \
echo "*** install freyr client ***" && echo "*** install freyr client ***" && \
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing atomicparsley && apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing atomicparsley && \
npm install -g miraclx/freyr-js && npm install -g miraclx/freyr-js &&\
echo "*** install python packages ***" && echo "*** install python packages ***" && \
pip install --upgrade --no-cache-dir --break-system-packages \ pip install --upgrade --no-cache-dir --break-system-packages \
jellyfish \ jellyfish \
beautifulsoup4 \ beautifulsoup4 \
@ -38,23 +38,23 @@ echo "*** install packages ***" &&
mutagen \ mutagen \
r128gain \ r128gain \
tidal-dl \ tidal-dl \
deemix && deemix && \
echo "************ setup SMA ************" echo "************ setup SMA ************"
if [ -d "${SMA_PATH}" ]; then if [ -d "${SMA_PATH}" ]; then
rm -rf "${SMA_PATH}" rm -rf "${SMA_PATH}"
fi fi
echo "************ setup directory ************" && echo "************ setup directory ************" && \
mkdir -p ${SMA_PATH} && mkdir -p ${SMA_PATH} && \
echo "************ download repo ************" && echo "************ download repo ************" && \
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git ${SMA_PATH} && \
mkdir -p ${SMA_PATH}/config && mkdir -p ${SMA_PATH}/config && \
echo "************ create logging file ************" && echo "************ create logging file ************" && \
mkdir -p ${SMA_PATH}/config && mkdir -p ${SMA_PATH}/config && \
touch ${SMA_PATH}/config/sma.log && touch ${SMA_PATH}/config/sma.log && \
chgrp users ${SMA_PATH}/config/sma.log && chgrp users ${SMA_PATH}/config/sma.log && \
chmod g+w ${SMA_PATH}/config/sma.log && chmod g+w ${SMA_PATH}/config/sma.log && \
echo "************ install pip dependencies ************" && echo "************ install pip dependencies ************" && \
python3 -m pip install --break-system-packages --upgrade pip && python3 -m pip install --break-system-packages --upgrade pip && \
pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt pip3 install --break-system-packages -r ${SMA_PATH}/setup/requirements.txt
mkdir -p /custom-services.d mkdir -p /custom-services.d
@ -92,6 +92,8 @@ echo "Download ARLChecker service..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/python/ARLChecker.py -o /custom-services.d/python/ARLChecker.py curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/python/ARLChecker.py -o /custom-services.d/python/ARLChecker.py
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/ARLChecker -o /custom-services.d/ARLChecker curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/ARLChecker -o /custom-services.d/ARLChecker
echo "Done" echo "Done"
mkdir -p /config/extended mkdir -p /config/extended
@ -131,6 +133,14 @@ if [ ! -f /config/extended/tidal-dl.json ]; then
echo "Done" echo "Done"
fi fi
echo "Download Deemix config..."
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/deemix_config.json" -o /config/extended/deemix_config.json
echo "Done"
echo "Download Tidal config..."
curl "https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/tidal-dl.json" -o /config/extended/tidal-dl.json
echo "Done"
echo "Download LyricExtractor script..." echo "Download LyricExtractor script..."
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/LyricExtractor.bash -o /config/extended/LyricExtractor.bash curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/lidarr/LyricExtractor.bash -o /config/extended/LyricExtractor.bash
echo "Done" echo "Done"