now it can load balance copies

This commit is contained in:
fred 2022-12-11 15:56:43 +01:00
parent 80f7a22c75
commit 170f755cb4
2 changed files with 6 additions and 3 deletions

View File

@ -107,6 +107,8 @@ if [[ ! ${TIDDLER} ]]; then
TITLE=${TITLE//[^A-zÀ-ÿ0-9 ]/}
[[ ! $TITLE ]] && echo "NO TITLE" && continue
start=`date +%s`
echo ".... Downloading $TITLE.mp4"
espeak "$TITLE" > /dev/null 1>&2
# https://github.com/yt-dlp/yt-dlp#format-selection-examples
@ -180,6 +182,9 @@ if [[ ! ${TIDDLER} ]]; then
## PREPARE VIDEO HTML5 CODE
TEXT="<video controls width=100% poster='/ipfs/"${ANIMH}"'><source src='/ipfs/"${ILINK}"' type='"${MIME}"'></video><br>{{!!duree}}<br><h1><a href='"${ZYURL}"'>"${TITLE}"</a></h1>"
end=`date +%s`
dur=`expr $end - $start`
echo "Creating Youtube ${YID} tiddler : G1CopierYoutube !"
echo $TEXT
@ -198,6 +203,7 @@ if [[ ! ${TIDDLER} ]]; then
"mime": "'${MIME}'",
"size": "'${FILE_BSIZE}'",
"sec": "'${SEC}'",
"dur": "'${dur}'",
"ipfs": "'/ipfs/${ILINK}'",
"youtubeid": "'${YID}'",
"tags": "'ipfs G1CopierYoutube ${PLAYER} ${EXTRATAG} ${MIME}'"

View File

@ -127,9 +127,6 @@ isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(
echo '[{"title":"$:/ipfs/saver/api/http/localhost/5001","tags":"$:/ipfs/core $:/ipfs/saver/api","text":"'$APIGW'"}]' > ~/.zen/tmp/${MOATS}/5001.json
echo '[{"title":"$:/ipfs/saver/gateway/http/localhost","tags":"$:/ipfs/core $:/ipfs/saver/gateway","text":"'$IPFSGW'"}]' > ~/.zen/tmp/${MOATS}/8080.json
## UPDATE LightBeam Plugin Tiddler $PLAYER_feed
# $:/plugins/astroport/lightbeams/saver/ipns/lightbeam-name
# $:/plugins/astroport/lightbeams/saver/ipns/lightbeam-key
## export FRIENDSFEEDS from Gchange stars
echo '[{"title":"$:/plugins/astroport/lightbeams/state/subscriptions","text":"'${FRIENDSFEEDS}'","tags":""}]' > ~/.zen/tmp/${MOATS}/friends.json