forked from axiom-team/astrXbian
bug correction
This commit is contained in:
parent
3ca90a84d6
commit
0a3920b61e
|
@ -16,7 +16,7 @@ SITE_IDENTIFIER = 'astroport'
|
|||
SITE_NAME = 'ASTROPORT _PROFIL_ (_LOGIN_) (_MDP_)'
|
||||
SITE_DESC = 'Partage ~/astroport/films (animes, series) avec ses amis https://cesium.app via IPFS'
|
||||
|
||||
URL_MAIN = 'http://localhost:8181/ipns/_IPNSKEY_/xbian/'
|
||||
URL_MAIN = 'http://127.0.0.1:8181/ipns/_IPNSKEY_/xbian/'
|
||||
|
||||
KEY_PASTE_ID = 'PASTE_ID'
|
||||
SETTING_PASTE_ID = 'pastebin_id_'
|
||||
|
|
|
@ -35,18 +35,18 @@ extension="${filename##*.}"
|
|||
filena="${filename%.*}"
|
||||
echo "animes;$filena;http://localhost:8181/ipfs/$AASHARE/$filename" >> ~/.zen/ipfs/xbian/A${XZUID}
|
||||
|
||||
rm -f "~/astroport/animes/$file"
|
||||
rm -f "/home/$YOU/astroport/animes/$file"
|
||||
cat ~/.zen/ipfs/xbian/A${XZUID} | uniq > /tmp/A${XZUID}
|
||||
mv /tmp/A${XZUID} ~/.zen/ipfs/xbian/A${XZUID}
|
||||
|
||||
ipfs cat /ipns/$NODEIPNS/xbian/A${XZUID}
|
||||
|
||||
########################################################################
|
||||
echo "PUBLISH ~/.zen/ipfs to IPNS self"
|
||||
echo "-----------------------------------------------------------------"
|
||||
MIPFS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
||||
NODEIPNS=$(ipfs name publish --quieter /ipfs/$MIPFS)
|
||||
|
||||
ipfs cat /ipns/$IPFSNODEID/xbian/A${XZUID}
|
||||
|
||||
echo "SYNCing SWARM..."
|
||||
echo "-----------------------------------------------------------------"
|
||||
~/.zen/astrXbian/zen/ipfs_SWARM_refresh.sh
|
||||
|
|
|
@ -21,7 +21,8 @@ XZUID=$(cat ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid)
|
|||
### Films
|
||||
echo "ADDING ~/astroport/films/ to IPFS. should be only one file"
|
||||
echo "-----------------------------------------------------------------"
|
||||
AFSHARE=$(ipfs add -rq ~/astroport/films/ | tail -n 1)
|
||||
|
||||
AFSHARE=$(ipfs add -rq ~/astroport/films | tail -n 1)
|
||||
[[ $AFSHARE == "" ]] && echo "ipfs add ERROR" && exit 1
|
||||
|
||||
echo "WRITE own ~/.zen/ipfs/xbian/F$XZUID Films index"
|
||||
|
@ -33,20 +34,20 @@ file="$1"
|
|||
filename=$(basename -- "$file")
|
||||
extension="${filename##*.}"
|
||||
filena="${filename%.*}"
|
||||
echo "films;$filena;http://localhost:8181/ipfs/$FASHARE/$filename" >> ~/.zen/ipfs/xbian/F${XZUID}
|
||||
echo "films;$filena;http://localhost:8181/ipfs/$AFSHARE/$filename" >> ~/.zen/ipfs/xbian/F${XZUID}
|
||||
|
||||
rm -f "~/astroport/films/$file"
|
||||
rm -f "/home/$YOU/astroport/films/$file"
|
||||
cat ~/.zen/ipfs/xbian/F${XZUID} | uniq > /tmp/F${XZUID}
|
||||
mv /tmp/F${XZUID} ~/.zen/ipfs/xbian/F${XZUID}
|
||||
|
||||
ipfs cat /ipns/$NODEIPNS/xbian/F${XZUID}
|
||||
|
||||
########################################################################
|
||||
echo "PUBLISH ~/.zen/ipfs to IPNS self"
|
||||
echo "-----------------------------------------------------------------"
|
||||
MIPFS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
||||
NODEIPNS=$(ipfs name publish --quieter /ipfs/$MIPFS)
|
||||
|
||||
ipfs cat /ipns/$IPFSNODEID/xbian/F${XZUID}
|
||||
|
||||
echo "SYNCing SWARM..."
|
||||
echo "-----------------------------------------------------------------"
|
||||
~/.zen/astrXbian/zen/ipfs_SWARM_refresh.sh
|
||||
|
|
Loading…
Reference in New Issue