From 8622d2a16ae391d649778780f769c55b9b095d9a Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 7 Apr 2022 12:29:55 +0200 Subject: [PATCH] quicker second run --- crowdbunker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crowdbunker.sh b/crowdbunker.sh index 55fdf45..536a5db 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -70,7 +70,7 @@ for VUID in $(cat ~/.zen/bunkerbox/crowd.json | jq -r '.posts | .[] | .video.id' VTHUMB="$(cat ~/.zen/bunkerbox/$VUID/$VUID.json | jq -r --arg VSIZE "$VSIZE" '.video.thumbnails[] | select(.height == $VSIZE) | .url')" echo ">>>>>>>>>>>>>>>> Downloading Video $VSIZE Thumbnail" - curl -s $VTHUMB -o ~/.zen/bunkerbox/$VUID/media/$VUID.jpg + [[ ! -f ~/.zen/bunkerbox/$VUID/media/$VUID.jpg ]] && curl -s $VTHUMB -o ~/.zen/bunkerbox/$VUID/media/$VUID.jpg [[ ! -f ~/.zen/bunkerbox/$VUID/media/$VUID.jpg ]] && cp ${MY_PATH}/images/astroport.jpg ~/.zen/bunkerbox/$VUID/media/$VUID.jpg # CORRECT MISSING THUMB echo "VIDEOSRC=$MEDIASOURCE/$VIDEOSRC"