NEW PLAYER API - JSON TW EXPORT tag=?
This commit is contained in:
parent
b1ee55d196
commit
3deb276c75
19
12345.sh
19
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
|
||||
|
|
|
@ -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/$...```
|
||||
|
|
|
@ -65,7 +65,7 @@ header {
|
|||
</h2>
|
||||
</br>
|
||||
<p>
|
||||
<b>Besoin d'aide ? Contactez support@qo-op.com</b>
|
||||
<b><a href="mailto:support@qo-op.com">Besoin d'aide ?</a> Contactez support@qo-op.com</b>
|
||||
</p>
|
||||
</header>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue