Lancement de la video dans 10 secondes uniquement pour les stations Astroport...

This commit is contained in:
qo-op 2021-06-17 22:22:06 +02:00
parent f589593a9f
commit 8d50302432
1 changed files with 27 additions and 9 deletions

View File

@ -286,15 +286,33 @@ rm /tmp/.ipfsid
echo "<meta http-equiv=\"Refresh\" content=\"0;URL=http://127.0.0.1:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/${G1PUB}/index.html
IPNSLINK=$(ipfs key list -l | grep ${MEDIAKEY} | cut -d ' ' -f 1)
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>
Ce média ${TITLE} vient d'être ajouté au Video Club P2P... Libre et légal<br>
<h2>Découvrez <a href='https://copylaradio.com'>astrXbian</a></h2>
Lancement de la lecture localhost dans 10 secondes...<br><br>
<br><a href=\"https://www.gchange.fr/#/app/user/${G1PUB}/\">
<img width=222 src=\"https://tube.copylaradio.com/ipns/$IPNSLINK/QR.png\"></a>
<br><br><b>QR Code du portefeuille du media (${id}) et lien vers son garant.</b>
<br>envoyez un virement pour le conserver en ligne... Et offrir de la monnaie libre à son créateur." > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/index.html
echo "<!DOCTYPE html>
<html>
<head>
<title>$TITLE in Astroport</title>
<meta charset=\"UTF-8\">
<meta http-equiv=\"Refresh\" content=\"10;URL=https://tube.copylaradio.com/ipns/$IPNSLINK/${G1PUB}/\">
<link rel='stylesheet' href='/crowdbunker.css' type='text/css' />
<link rel='icon' type='image/png' href='/astrocrowdbunker.png' />
</head>
<body>
<header>
<h6>
<a href='https://astroport.com'><span>ASTROPORT/KODI</span> × <span> DEMO</span></a>
</h6>
</header>
<main>
<article>
<a href=\"$LOCALTUBELINK\">LECTURE LOCALHOST</a>! Lancement de la video dans 10 secondes uniquement pour les stations Astroport...<br>
<br>Activation mode DEMO - EN COURS -
<h1 class='video-title'>Essayez <a href='https://copylaradio.com'>astrXbian</a> BETA Live TEstNET</h1>
</article>
</main>
<center><br>Démonstration du service Video Club du Datacenter P2P Libre et Légal.<br>
<br>Les dons au portefeuille du Media (${id}) rapportent à son Auteur, et payent son hébergement.
<br><a target='tube' href=\"https://www.gchange.fr/#/app/user/${G1PUB}/\"><img width=222 src=\"https://tube.copylaradio.com/ipns/$IPNSLINK/QR.png\"></a></center>
</body>
</html>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${MEDIAKEY}/index.html
## COPY LOCALHOST IPFS URL TO CLIPBOARD
[[ $(which xclip) ]] && echo "http://127.0.0.1:8181/ipfs/$IPFSREPFILEID/$URLENCODE_FILE_NAME" | xclip -selection c