From a3ddcc279623512faa264fa8ef48c98f7ddf147a Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 15 Jun 2021 19:01:58 +0200 Subject: [PATCH] OPEN VIDEO CLUB TO PUBLIC VIEWERS --- zen/ipns_TAG_refresh.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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