diff --git a/12345.sh b/12345.sh index e5da41d0..2ced07fb 100755 --- a/12345.sh +++ b/12345.sh @@ -16,6 +16,7 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized PORT=12345 YOU=$(myIpfsApi); ## API of $USER running ipfs + echo "YOU=$YOU" LIBRA=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 2) ## SWARM#0 ENTRANCE URL TUBE=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 3) @@ -536,6 +537,24 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh continue fi +############################################## +# MOATUBE : /?player=PLAYER&moa=json&tag=FILTER +############################################## + if [[ $APPNAME == "moa" ]]; then + + [[ ! $VAL ]] && VAL="G1CopierYoutube" + echo "EXPORT MOATUBE $PLAYER $VAL" + + echo "$HTTPCORS" > ~/.zen/tmp/${MOATS}.$PLAYER.http + sed -i "s~text/html~application/json~g" ~/.zen/tmp/${MOATS}.$PLAYER.http + + tiddlywiki --load ~/.zen/game/players/support@qo-op.com/ipfs/moa/index.html --output ~/.zen/tmp/ --render '.' "$PLAYER.moatube.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "[tag[$VAL]]" + + cat ~/.zen/tmp/$PLAYER.moatube.json >> ~/.zen/tmp/${MOATS}.$PLAYER.http + cat ~/.zen/tmp/${MOATS}.$PLAYER.http | nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & + + continue + fi fi ############################################## # /?player=PLAYER&APPNAME=WHAT&OBJ=VAL diff --git a/README.md b/README.md index e7c5480e..1d3638cc 100644 --- a/README.md +++ b/README.md @@ -100,9 +100,12 @@ Redirections ### PLAYER -* Déclencher un Payement (G1) +* Déclencher un Payement de 99 Ğ1 à Fred ```/?player=${PLAYER}&pay=99&g1pub=DsEx1pS33vzYZg4MroyBV9hCw98j1gtHEhwiZ5tK7ech``` +* Export TW json TAG=G1CopierYoutube +```/?player=${PLAYER}&moa=json&tag=G1CopierYoutube``` + ### PUBLIC ### ```/?qrcode=$G1PUB/$IPNS/$...``` diff --git a/templates/register.html b/templates/register.html index 34554feb..1ebba9ef 100644 --- a/templates/register.html +++ b/templates/register.html @@ -65,7 +65,7 @@ header {

- Besoin d'aide ? Contactez support@qo-op.com + Besoin d'aide ? Contactez support@qo-op.com

diff --git a/tools/download_from_kodi_log.sh b/tools/download_from_kodi_log.sh index b5d271aa..c48582c5 100755 --- a/tools/download_from_kodi_log.sh +++ b/tools/download_from_kodi_log.sh @@ -58,7 +58,7 @@ do uqload_downloader https://uqload.com/$uqlink "$HOME/Astroport/$uqname.mp4" echo "COPY ~/Astroport/$uqname.mp4 DONE" ## ARE WE RUNNING ON ASTROPORT STATION? - [[ ${IPFSNODEID} && -d ~/.zen/Astroport.ONE/ ]] && ~/.zen/Astroport.ONE/ajouter_media.sh + [[ ${IPFSNODEID} && -d ~/.zen/Astroport.ONE/ ]] && espeak "Download $uqname from Kodi done" fi done