diff --git a/zen/ipns_TAG_refresh.sh b/zen/ipns_TAG_refresh.sh index b99aa2b..7f6e3c6 100755 --- a/zen/ipns_TAG_refresh.sh +++ b/zen/ipns_TAG_refresh.sh @@ -68,7 +68,7 @@ do ANNONCE=$(cat ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.gchange.ad) ## CRYPTO EXAMPLE, use natools to decrypt (could also verify signature) [[ -f ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.ipfs.filelink.natools.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.ipfs.filelink.natools.encrypt" -o "/tmp/${id}_filelink.txt" - cat /tmp/${id}_filelink.txt + ## URL ENCODE FILE NAME : cat /tmp/${id}_filelink.txt | rev | cut -d '/' -f 1 | rev | jq -Rr @uri IPFSTUBELINK="https://tube.copylaradio.com$(cat /tmp/${id}_filelink.txt)" MIMETYPE="video/${IPFSTUBELINK##*.}" @@ -90,8 +90,8 @@ Apprenez à programmer le BLOB et ajoutez de nouveaux services au Datacenter Vir [[ ! -f ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.id ]] && echo ${id} > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.id echo "" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html - - # echo "" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html + # echo "" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html + echo "" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html if [[ "$source" == "YOUTUBE" ]] then