From cd45c59505cb6e7895c9329b0dc2cf8b5d3806d1 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 9 Jul 2023 10:39:03 -0400 Subject: [PATCH] v1.1 cookies find fix --- sonarr/YoutubeSeriesDownloader.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonarr/YoutubeSeriesDownloader.service b/sonarr/YoutubeSeriesDownloader.service index 8425812..daef7ff 100644 --- a/sonarr/YoutubeSeriesDownloader.service +++ b/sonarr/YoutubeSeriesDownloader.service @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0" +scriptVersion="1.1" ytdlpExtraOpts="--user-agent facebookexternalhit/1.1" #### Settings @@ -65,8 +65,8 @@ fi CookiesCheck () { # Check for cookies file - if find /config -type f -iname "cookies.txt" | read; then - cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)" + if [ -f /config/cookies.txt ]; then + cookiesFile="/config/cookies.txt" log "Cookies File Found!" else log "Cookies File Not Found!"