v1.1 cookies find fix

This commit is contained in:
RandomNinjaAtk 2023-07-09 10:39:03 -04:00 committed by GitHub
parent 76b9c590fa
commit cd45c59505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
scriptVersion="1.0" scriptVersion="1.1"
ytdlpExtraOpts="--user-agent facebookexternalhit/1.1" ytdlpExtraOpts="--user-agent facebookexternalhit/1.1"
#### Settings #### Settings
@ -65,8 +65,8 @@ fi
CookiesCheck () { CookiesCheck () {
# Check for cookies file # Check for cookies file
if find /config -type f -iname "cookies.txt" | read; then if [ -f /config/cookies.txt ]; then
cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)" cookiesFile="/config/cookies.txt"
log "Cookies File Found!" log "Cookies File Found!"
else else
log "Cookies File Not Found!" log "Cookies File Not Found!"