This commit is contained in:
qo-op 2021-05-23 01:05:44 +02:00
parent a67815abbc
commit e2dd84e329
1 changed files with 5 additions and 5 deletions

View File

@ -68,14 +68,14 @@ do
## 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://tube.copylaradio.com$(cat /tmp/${id}_filelink.txt)"
MIMETYPE="video/${ARIESLINK##*.}"
IPFSTUBELINK="https://tube.copylaradio.com$(cat /tmp/${id}_filelink.txt)"
MIMETYPE="video/${IPFSTUBELINK##*.}"
### 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://tube.copylaradio.com/ipns/$IPNSLINK/${G1PUB}/\">
<h1><a href='https://astroport.com'>ASTROPORT</a>/KODI</h1>
<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>
<a href=\"$IPFSTUBELINK\">LECTURE immédiate</a>! Lancement video locale dans 10 secondes ...<br>
Apprenez à programmer le BLOB et ajoutez de nouveaux services au 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}/\">
<img width=40 src=\"https://tube.copylaradio.com/ipns/${IPFSNODEID}/.${IPFSNODEID}/G1SSB/_g1.gchange_avatar.png\"></a>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/index.html
@ -90,7 +90,7 @@ Recrutons experts BASH pour programmer les nouveaux services du Datacenter Virtu
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
# echo "<video autoplay='autoplay' controls><source src=\"$ARIESLINK\" type=\"$MIMETYPE\"></video>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html
# echo "<video autoplay='autoplay' controls><source src=\"$IPFSTUBELINK\" type=\"$MIMETYPE\"></video>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html
if [[ "$source" == "YOUTUBE" ]]
then