diff --git a/actions/p4n.swarmscraper.sh b/actions/p4n.swarmscraper.sh index 1485837..62311db 100755 --- a/actions/p4n.swarmscraper.sh +++ b/actions/p4n.swarmscraper.sh @@ -105,6 +105,7 @@ echo "SUB-SCRAPING lieu FROM /astroport/map/$lat.$lon/p4n/spot.json" [ -d ~/.zen/ipfs/.$IPFSNODEID/astroport/map/p4n/lieu/$lid ] && lieu=$(cat $geodata | jq -r '.lieux[] | "\(.id),\(.latitude),\(.longitude),\(.hauteur_limite),\(.publique),\(.top_liste),\(.code),\(.validation_admin),\(.distance)"' | shuf | tail -n 1) lid=$(echo "$lieu" | cut -d ',' -f 1) + [[ "$lid" == "" ]] && continue code=$(echo "$lieu" | cut -d ',' -f 7) if [[ $(which chromium) ]]; then