check enabled video/audio earlier to avoid logspamming

pull/35/head
randomuser345 2 years ago
parent 1a833973c0
commit 2b1abc2dd9

@ -11,7 +11,7 @@ echo "Project: https://github.com/RandomNinjaAtk/docker-lidarr-extended"
echo "Support: https://github.com/RandomNinjaAtk/docker-lidarr-extended/discussions"
echo "-----------------------------------------------------------------------------"
if [ "$autoStart" = "true" ]; then
if [ "$autoStart" = "true" ] && [ "$enableAudioScript" = "true" ]; then
echo "Automatic Start Enabled, starting in 2 min..."
sleep 2m
bash /config/extended/scripts/start_audio.sh

@ -10,7 +10,7 @@ echo "Donate: https://github.com/sponsors/RandomNinjaAtk"
echo "Project: https://github.com/RandomNinjaAtk/docker-lidarr-extended"
echo "Support: https://github.com/RandomNinjaAtk/docker-lidarr-extended/discussions"
echo "-----------------------------------------------------------------------------"
if [ "$autoStart" = "true" ]; then
if [ "$autoStart" = "true" ] && [ "$enableVideoScript" = "true" ]; then
echo "Automatic Start Enabled, starting in 2 min..."
sleep 2m
bash /config/extended/scripts/start_video.sh

Loading…
Cancel
Save