From 4dd767877f3c2b3a980ab586fa40c5dea6eb423c Mon Sep 17 00:00:00 2001 From: qo-op Date: Sun, 19 Apr 2020 16:15:58 +0200 Subject: [PATCH] audio / video --- zen/cron_MINUTE.sh | 2 +- zen/cron_VRFY.sh | 4 ++++ zen/ssb_GET_zenyta.sh | 19 ++++++++++--------- zen/ssb_GET_zenytv.sh | 19 ++++++++++--------- zen/zen_MAKE.sh | 4 ++-- 5 files changed, 27 insertions(+), 21 deletions(-) diff --git a/zen/cron_MINUTE.sh b/zen/cron_MINUTE.sh index d372a8b..d5754c4 100755 --- a/zen/cron_MINUTE.sh +++ b/zen/cron_MINUTE.sh @@ -51,7 +51,7 @@ if [[ "$timebar" == "00:01" ]]; then youtube-dl --rm-cache-dir youtube-dl -U [[ $jourdelasemaine == 0 ]] && mv -f /tmp/astroport.log ~/.zen/astroport.$numerosemaine.log # LOG BACKUP FOR 1 YEAR !! - + cd $MY_PATH/../ && git pull && cd $MY_PATH # UPDATE CODE git pull fi ################################################################## diff --git a/zen/cron_VRFY.sh b/zen/cron_VRFY.sh index 40be81f..978b346 100755 --- a/zen/cron_VRFY.sh +++ b/zen/cron_VRFY.sh @@ -23,4 +23,8 @@ crontab -l > /tmp/mycron echo "* * * * * $MY_PATH/cron_MINUTE.sh >> /tmp/astroport.log 2>&1" >> /tmp/mycron crontab /tmp/mycron rm /tmp/mycron + +# MAKE IPFS SWARM refresh +$MY_PATH/ipfs_SWARM_refresh.sh + exit 0 diff --git a/zen/ssb_GET_zenyta.sh b/zen/ssb_GET_zenyta.sh index ce11fa9..978e9ee 100755 --- a/zen/ssb_GET_zenyta.sh +++ b/zen/ssb_GET_zenyta.sh @@ -35,15 +35,16 @@ ipfsnodeid=$(ipfs id -f='\n') current_ts=$(date -u +%s%N | cut -b1-13) [ -f ~/.zen/zenyta.last.ts ] && last_ts=$(cat ~/.zen/zenyta.last.ts) || last_ts=$((current_ts - 24*3600*1000 - 1)) # 24h ago -echo " - _ - ____ ___ _ __ _ _ | |_ __ __ -|_ / / _ \ | '_ \ | | | | | __| \ \ / / - / / | __/ | | | | | |_| | | |_ \ V / -/___| \___| |_| |_| \__, | \__| \_/ - |___/ -last timestamp: $last_ts -" +echo "last timestamp: $last_ts" +echo ' +a u d i o + _ _ + __ _ _ _ __| | (_) ___ +/ _` | | || | / _` | | | / _ \ +\__,_| \_,_| \__,_| |_| \___/ + +' + #messages=$(sbotc messagesByType '{"type":"post","gt":'$last_ts'}') # SEARCH "#zenyta" CMD in message text diff --git a/zen/ssb_GET_zenytv.sh b/zen/ssb_GET_zenytv.sh index f04632b..77a3c08 100755 --- a/zen/ssb_GET_zenytv.sh +++ b/zen/ssb_GET_zenytv.sh @@ -36,15 +36,16 @@ ipfsnodeid=$(ipfs id -f='\n') current_ts=$(date -u +%s%N | cut -b1-13) [ -f ~/.zen/zenytv.last.ts ] && last_ts=$(cat ~/.zen/zenytv.last.ts) || last_ts=$((current_ts - 24*3600*1000 - 1)) # 24h ago -echo " - _ - ____ ___ _ __ _ _ | |_ __ __ -|_ / / _ \ | '_ \ | | | | | __| \ \ / / - / / | __/ | | | | | |_| | | |_ \ V / -/___| \___| |_| |_| \__, | \__| \_/ - |___/ -last timestamp: $last_ts -" +echo "last timestamp: $last_ts" +echo ' +v i d e o + _ _ +__ __ (_) __| | ___ ___ +\ V / | | / _` | / -_) / _ \ + \_/ |_| \__,_| \___| \___/ + +' + #messages=$(sbotc messagesByType '{"type":"post","gt":'$last_ts'}') # SEARCH "#zenytv" CMD in message text diff --git a/zen/zen_MAKE.sh b/zen/zen_MAKE.sh index aee14dc..c3a19f7 100755 --- a/zen/zen_MAKE.sh +++ b/zen/zen_MAKE.sh @@ -257,8 +257,8 @@ echo "New Contract (hit ENTER)" read echo "To get access to file : $PASSENGERNAME -- Give $READ Zen to $ipfsnodeid -Once received " +- Send $READ Zen to $ipfsnodeid with $PASSENGERNAME in comment +Once payment received. You will get a SSB message containing your key" # so it create a "_passenger.ipfs.NodeN.crypt" # ADD NodeN as a consumer (each new listener is a relative partners)