fix parse error?

This commit is contained in:
Alexander Bocken 2021-06-26 20:03:47 +02:00
parent 613b68748c
commit 92ccd5a226
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

1
ripper
View File

@ -80,6 +80,7 @@ for channel_id in $IDs; do
grep -vf "$BLACKLIST" >> /tmp/todownload$$ grep -vf "$BLACKLIST" >> /tmp/todownload$$
fi fi
else else
[ -z "$json" ] && continue
if [ "$(echo "$json" | jq '.pageInfo.totalResults')" -eq 0 ];then if [ "$(echo "$json" | jq '.pageInfo.totalResults')" -eq 0 ];then
echo "Grabbing API data for channel returend no results" echo "Grabbing API data for channel returend no results"
echo "Is https://youtube.com/channel/$channel_id still up?" echo "Is https://youtube.com/channel/$channel_id still up?"