audio / video
This commit is contained in:
parent
c1545b76b5
commit
4dd767877f
|
@ -51,7 +51,7 @@ if [[ "$timebar" == "00:01" ]]; then
|
||||||
youtube-dl --rm-cache-dir
|
youtube-dl --rm-cache-dir
|
||||||
youtube-dl -U
|
youtube-dl -U
|
||||||
[[ $jourdelasemaine == 0 ]] && mv -f /tmp/astroport.log ~/.zen/astroport.$numerosemaine.log # LOG BACKUP FOR 1 YEAR !!
|
[[ $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
|
fi
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
|
|
|
@ -23,4 +23,8 @@ crontab -l > /tmp/mycron
|
||||||
echo "* * * * * $MY_PATH/cron_MINUTE.sh >> /tmp/astroport.log 2>&1" >> /tmp/mycron
|
echo "* * * * * $MY_PATH/cron_MINUTE.sh >> /tmp/astroport.log 2>&1" >> /tmp/mycron
|
||||||
crontab /tmp/mycron
|
crontab /tmp/mycron
|
||||||
rm /tmp/mycron
|
rm /tmp/mycron
|
||||||
|
|
||||||
|
# MAKE IPFS SWARM refresh
|
||||||
|
$MY_PATH/ipfs_SWARM_refresh.sh
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -35,15 +35,16 @@ ipfsnodeid=$(ipfs id -f='<id>\n')
|
||||||
current_ts=$(date -u +%s%N | cut -b1-13)
|
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
|
[ -f ~/.zen/zenyta.last.ts ] && last_ts=$(cat ~/.zen/zenyta.last.ts) || last_ts=$((current_ts - 24*3600*1000 - 1)) # 24h ago
|
||||||
|
|
||||||
echo "
|
echo "last timestamp: $last_ts"
|
||||||
_
|
echo '
|
||||||
____ ___ _ __ _ _ | |_ __ __
|
a u d i o
|
||||||
|_ / / _ \ | '_ \ | | | | | __| \ \ / /
|
_ _
|
||||||
/ / | __/ | | | | | |_| | | |_ \ V /
|
__ _ _ _ __| | (_) ___
|
||||||
/___| \___| |_| |_| \__, | \__| \_/
|
/ _` | | || | / _` | | | / _ \
|
||||||
|___/
|
\__,_| \_,_| \__,_| |_| \___/
|
||||||
last timestamp: $last_ts
|
|
||||||
"
|
'
|
||||||
|
|
||||||
|
|
||||||
#messages=$(sbotc messagesByType '{"type":"post","gt":'$last_ts'}')
|
#messages=$(sbotc messagesByType '{"type":"post","gt":'$last_ts'}')
|
||||||
# SEARCH "#zenyta" CMD in message text
|
# SEARCH "#zenyta" CMD in message text
|
||||||
|
|
|
@ -36,15 +36,16 @@ ipfsnodeid=$(ipfs id -f='<id>\n')
|
||||||
current_ts=$(date -u +%s%N | cut -b1-13)
|
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
|
[ -f ~/.zen/zenytv.last.ts ] && last_ts=$(cat ~/.zen/zenytv.last.ts) || last_ts=$((current_ts - 24*3600*1000 - 1)) # 24h ago
|
||||||
|
|
||||||
echo "
|
echo "last timestamp: $last_ts"
|
||||||
_
|
echo '
|
||||||
____ ___ _ __ _ _ | |_ __ __
|
v i d e o
|
||||||
|_ / / _ \ | '_ \ | | | | | __| \ \ / /
|
_ _
|
||||||
/ / | __/ | | | | | |_| | | |_ \ V /
|
__ __ (_) __| | ___ ___
|
||||||
/___| \___| |_| |_| \__, | \__| \_/
|
\ V / | | / _` | / -_) / _ \
|
||||||
|___/
|
\_/ |_| \__,_| \___| \___/
|
||||||
last timestamp: $last_ts
|
|
||||||
"
|
'
|
||||||
|
|
||||||
|
|
||||||
#messages=$(sbotc messagesByType '{"type":"post","gt":'$last_ts'}')
|
#messages=$(sbotc messagesByType '{"type":"post","gt":'$last_ts'}')
|
||||||
# SEARCH "#zenytv" CMD in message text
|
# SEARCH "#zenytv" CMD in message text
|
||||||
|
|
|
@ -257,8 +257,8 @@ echo "New Contract (hit ENTER)"
|
||||||
read
|
read
|
||||||
|
|
||||||
echo "To get access to file : $PASSENGERNAME
|
echo "To get access to file : $PASSENGERNAME
|
||||||
- Give $READ Zen to $ipfsnodeid
|
- Send $READ Zen to $ipfsnodeid with $PASSENGERNAME in comment
|
||||||
Once received "
|
Once payment received. You will get a SSB message containing your key"
|
||||||
|
|
||||||
# so it create a "_passenger.ipfs.NodeN.crypt"
|
# so it create a "_passenger.ipfs.NodeN.crypt"
|
||||||
# ADD NodeN as a consumer (each new listener is a relative partners)
|
# ADD NodeN as a consumer (each new listener is a relative partners)
|
||||||
|
|
Loading…
Reference in New Issue