diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh
index 0fc99db37..b6f632282 100755
--- a/RUNTIME/PLAYER.refresh.sh
+++ b/RUNTIME/PLAYER.refresh.sh
@@ -520,8 +520,9 @@ for PLAYER in ${PLAYERONE[@]}; do
#################################### UNPLUG ACCOUNT
+ ### PUBLISH RSS &
IRSS=$(ipfs add -q ~/.zen/game/players/${PLAYER}/ipfs/${PLAYER}.rss.json | tail -n 1) \
- && ipfs --timeout 180s name publish --key="${PLAYER}_feed" /ipfs/${IRSS}
+ && ipfs --timeout 180s name publish --key="${PLAYER}_feed" /ipfs/${IRSS} &
######################### REPLACE TW with REDIRECT to latest IPFS or IPNS (reduce 12345 cache size)
[[ ! -z ${TW} ]] && TWLNK="/ipfs/${TW}" || TWLNK="/ipns/${ASTRONAUTENS}"
@@ -553,10 +554,13 @@ for PLAYER in ${PLAYERONE[@]}; do
~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/RSS/
mkdir -p ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/TW/${PLAYER}
- #~ cp ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/TW/${PLAYER}/
- ## IPFS PLAYER TW ##
+ ## IPFS PLAYER TW #
+ # /ipfs/${TW}
echo "${TODATE}:${PLAYER}" \
> ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/TW/${PLAYER}/index.html
+ # /ipns/${ASTRONAUTENS}
+ echo "${PLAYER}" \
+ > ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/TW/${PLAYER}/_index.html
## IPNS UMAP _index.html ##
echo "${TODATE}:_${LAT}_${LON}" \
> ~/.zen/tmp/${IPFSNODEID}/UPLANET/__/_${REGLAT}_${REGLON}/_${SECLAT}_${SECLON}/_${LAT}_${LON}/_index.html
diff --git a/RUNTIME/UPlanetKEYS_refresh.sh b/RUNTIME/UPlanetKEYS_refresh.sh
index 32c357483..5ca9467cf 100755
--- a/RUNTIME/UPlanetKEYS_refresh.sh
+++ b/RUNTIME/UPlanetKEYS_refresh.sh
@@ -64,9 +64,15 @@ for key in ${UKEYS[@]}; do
&& medo=$((medo +1)) && floop=$((floop -1)) \
|| rm -Rf ~/.zen/tmp/flashmem/$key # GOT IT or NOT ?
- ## TODO search for TW /ipfs/ and refresh
- #~ TWS=($(cat ~/.zen/tmp/flashmem/$key/TW/*/index.html))
-
+ ## Search for TW /ipfs/ and refresh
+ #~ TWS=($(cat ~/.zen/tmp/flashmem/$key/TW/*/_index.html | grep -o "url='/[^']*'"| sed "s/url='\(.*\)'/\1/" | awk -F"/" '{print $3}' | shuf))
+ #~ for tw in ${TWS[@]}; do
+ #~ mkdir -p ~/.zen/tmp/flashmem/tw/$tw
+ #~ ipfs --timeout 180s get -o ~/.zen/tmp/flashmem/tw/$tw /ipns/$tw
+ #~ [[ $? == 0 ]] \
+ #~ && medo=$((medo +1)) && floop=$((floop -1)) \
+ #~ || rm -Rf ~/.zen/tmp/flashmem/tw/$tw
+ #~ done
[ $floop -gt 33 ] && break