From 3a5f9ddbbda611836ee93993d9b130d9c2485f02 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sat, 4 Feb 2023 20:43:38 -0500 Subject: [PATCH] New service for Youtube-Series-Downloader.bash #20 --- root/etc/services.d/extended_youtube/run | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 root/etc/services.d/extended_youtube/run diff --git a/root/etc/services.d/extended_youtube/run b/root/etc/services.d/extended_youtube/run new file mode 100644 index 0000000..7854e49 --- /dev/null +++ b/root/etc/services.d/extended_youtube/run @@ -0,0 +1,18 @@ +#!/usr/bin/with-contenv bash +if [ "$enableYoutubeSeriesDownloader" != "true" ]; then + echo "Youtube-Series-Downloader disabled, enable by setting parameter: enableYoutubeSeriesDownloader=true" + sleep infinity +else + echo "Waiting for Sonarr to startup..." + sleep 2m +fi + +echo "Starting Script...." +for (( ; ; )); do + let i++ + bash /config/extended/scripts/Youtube-Series-Downloader.bash + echo "Script sleeping for 4 hours..." + sleep 4h +done + +exit $?