forked from axiom-team/astrXbian
inotify-tools will launch xbian_vstream.sh
This commit is contained in:
parent
8c63f66df4
commit
75479575d3
|
@ -77,13 +77,12 @@ fi
|
|||
[[ $(($minute % 12)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/cesium_IPFS_swarm.sh &
|
||||
[[ $(($minute % 15)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/ipfs_SWARM_refresh.sh &
|
||||
|
||||
# Transfert ~/astroport/films to IPFS and make Vstream/ASTROPORT indexes on IPNS
|
||||
if [[ "$timebar" == "03:03" ]]; then
|
||||
# Transfert ~/astroport/films and animes to IPFS and make Vstream/ASTROPORT indexes on IPNS
|
||||
if [[ "$minute" == "03" ]]; then
|
||||
$MY_PATH/zen/xbian_vstream.sh &
|
||||
fi
|
||||
|
||||
|
||||
|
||||
## TODO investigate could breaks "ipfs p2p" forwards ?
|
||||
##################################################################
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Check requirements
|
||||
echo "AstrXbian installer"
|
||||
sudo apt update
|
||||
sudo apt install git fail2ban curl net-tools libsodium23 libsodium-dev python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk -y
|
||||
sudo apt install git fail2ban inotify-tools curl net-tools libsodium23 libsodium-dev python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk -y
|
||||
pip3 install cryptography Ed25519 base58 google protobuf
|
||||
|
||||
# git clone astrXbian
|
||||
|
|
|
@ -13,14 +13,18 @@
|
|||
mkdir -p ~/astroport/films
|
||||
mkdir -p ~/astroport/animes
|
||||
|
||||
## TODO: REMOVE SOURCE FILE and ONLY KEEP IPFS links
|
||||
## BE CAREFUL TO WAIT FOR FULL FILE (in case copying is in progress)
|
||||
|
||||
# GET XZUID
|
||||
XZUID=$(cat ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid)
|
||||
|
||||
echo "CREATE ~/.zen/ipfs/xbian/F$XZUID FROM ~/astroport/films"
|
||||
echo "-----------------------------------------------------------------"
|
||||
# CREATE Vstream/Pastebin file format
|
||||
# https://github.com/Kodi-vStream/venom-xbmc-addons/wiki/Voir-et-partager-sa-biblioth%C3%A8que-priv%C3%A9e#d%C3%A9clarer-des-films
|
||||
echo "CREATE ~/.zen/ipfs/xbian/F$XZUID FROM ~/astroport/films"
|
||||
echo "-----------------------------------------------------------------"
|
||||
|
||||
## Films
|
||||
echo "ADDING ~/astroport/films/ to IPFS"
|
||||
echo "-----------------------------------------------------------------"
|
||||
AFSHARE=$(ipfs add -rq ~/astroport/films/ | tail -n 1)
|
||||
|
|
Loading…
Reference in New Issue