Browse Source

refresh FASTRXBIAN index during SWARM refresh

master
Armust Blegde 11 months ago
parent
commit
09cfbc8632
  1. 13
      zen/ipfs_SWARM_refresh.sh

13
zen/ipfs_SWARM_refresh.sh

@ -78,4 +78,17 @@ NODEIPNS=$(ipfs name publish --quieter /ipfs/$IWALLETS)
# Retrieve my own data in /home/$YOU/.zen/ipfs_swarm/
ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID
# GET XZUID
[[ -f ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid ]] && XZUID="$(cat ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid)" || XZUID="$(hostname)"
echo "CREATE local FASTRXBIAN from ipfs_swarm found indexes"
echo "-----------------------------------------------------------------"
mkdir -p /tmp/xbian/
echo "CAT;TMDB;YEAR;TITLE;SAISON;GENRES;GROUPES;RES;URLS=http://127.0.0.1:10021" > /tmp/xbian/FASTRXBIAN # CREATE INDEX HEADER
cat ~/.zen/ipfs_swarm/xbian/F* | grep -v -E 'CAT;TMDB' >> /tmp/xbian/FASTRXBIAN # GET All lines
cat /tmp/xbian/FASTRXBIAN | uniq > /tmp/xbian/FASTRXBIAN.uniq # REMOVE DUPLICATE
mv /tmp/xbian/FASTRXBIAN.uniq /var/www/astrxbian/FASTRXBIAN # Publish to localhost ASTROPORT relay
cp -f /var/www/astrxbian/FASTRXBIAN ~/.zen/ipfs/xbian/F${XZUID}
exit 0

Loading…
Cancel
Save