From cebfe47ba8dd8b5871d6b357d8cdb53fcc94f6d5 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 19 Jul 2023 18:11:26 +0000 Subject: [PATCH] 1.5 - fix logging --- sonarr/YoutubeSeriesDownloader.service | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sonarr/YoutubeSeriesDownloader.service b/sonarr/YoutubeSeriesDownloader.service index 06697e1..30a5e51 100644 --- a/sonarr/YoutubeSeriesDownloader.service +++ b/sonarr/YoutubeSeriesDownloader.service @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.4" +scriptVersion="1.5" ytdlpExtraOpts="--user-agent facebookexternalhit/1.1" scriptName="YoutubeSeriesDownloader" @@ -18,9 +18,12 @@ logfileSetup () { touch "/config/logs/$scriptName.txt" chmod 666 "/config/logs/$scriptName.txt" fi - exec &> >(tee -a "/config/logs/$scriptName.txt") } +# Create Log, start writing... +logfileSetup +exec &> >(tee -a "/config/logs/$scriptName.txt") + verifyConfig () { #### Import Settings source /config/extended.conf