Browse Source

<a href=\"$ARIESLINK\">LECTURE immédiate</a>!

pull/32/head
qo-op 7 months ago
parent
commit
482eb2029d
  1. 17
      zen/ipns_TAG_refresh.sh

17
zen/ipns_TAG_refresh.sh

@ -64,10 +64,16 @@ do
source=$(echo $id | cut -d '_' -f 1)
ANNONCE=$(cat ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.gchange.ad)
### IPNS LINK CAN EVOLVE (REFRESH EVERY 12 H TO MAINTAIN ALIVE IN THE SWARM)
## 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
ARIESLINK="https://aries.copylaradio.com$(cat /tmp/${id}_filelink.txt)"
MIMETYPE="video/${ARIESLINK##*.}"
### IPNS LINK CAN EVOLVE (REFRESH EVERY 12 H TO MAINTAIN ALIVE IN THE SWARM)
echo "<meta charset=\"UTF-8\"><meta http-equiv=\"Refresh\" content=\"10;URL=https://aries.copylaradio.com/ipns/$IPNSLINK/${G1PUB}/\">
<h1><a href='https://astroport.com'>ASTROPORT</a>/KODI</h1>
DEMO BETA! Lancement video dans 10 secondes ...<br>
<a href=\"$ARIESLINK\">LECTURE immédiate</a>! Lancement video locale dans 10 secondes ...<br>
Recrutons experts BASH pour programmer les nouveaux services du Datacenter Virtuel...<br>
<h2>Essayez <a href='https://copylaradio.com'>astrXbian</a> service de video-club entre amis</h2>
<br><br>Fichier ajouté par : <a href=\"https://www.gchange.fr/#/app/user/${G1PUB}/\">
@ -80,14 +86,9 @@ Recrutons experts BASH pour programmer les nouveaux services du Datacenter Virtu
# FRANCE COPIE PRIVEE - clear ipfs link no tracking
## Write KEY id (provide verification)
[[ ! -f ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.id ]] && echo ${id} > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.id
## 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
echo "<meta charset=\"UTF-8\"><meta http-equiv=\"Refresh\" content=\"0;URL=https://aries.copylaradio.com$(cat /tmp/${id}_filelink.txt)\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html
echo "<meta charset=\"UTF-8\"><meta http-equiv=\"Refresh\" content=\"0;URL=http://127.0.0.1:8181$(cat /tmp/${id}_filelink.txt)\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html
ARIESLINK="https://aries.copylaradio.com$(cat /tmp/${id}_filelink.txt)"
MIMETYPE="video/${ARIESLINK##*.}"
# echo "<video autoplay='autoplay' controls><source src=\"$ARIESLINK\" type=\"$MIMETYPE\"></video>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html
if [[ "$source" == "YOUTUBE" ]]

Loading…
Cancel
Save