tot=$((tot+1))

This commit is contained in:
fred 2023-02-28 02:30:38 +01:00
parent 68013d01ac
commit b62d00d0c3
2 changed files with 7 additions and 3 deletions

View File

@ -83,6 +83,7 @@ cat ~/.zen/game/players/$PLAYER/G1CopierYoutube/yt-dlp.cache.$PLAYER 2>/dev/null
[[ ! -s ~/.zen/tmp/$IPFSNODEID/yt-dlp.cache.$PLAYER ]] && echo "AUCUN YOUTUBEID pour CopierYoutube" && exit 0
###################################################################
boucle=0
tot=0
###################################################################
# PROCESS YOUTUBEID VIDEO DOWNLOAD AND CREATE TIDDLER in TW
###################################################################
@ -90,7 +91,7 @@ while read LINE;
do
boucle=$((boucle+1))
echo "_____ $LINE _____ $boucle"
YID="$(echo "$LINE" | cut -d '&' -f 1)"
YID="$(echo "$LINE" | rev | cut -d '=' -f 1 | rev )"
###################################################################
## Search for $YID.TW.json TIDDLER in local & MySwarm cache
@ -108,7 +109,7 @@ if [[ ! ${TIDDLER} ]]; then
echo "COPIE : $ZYURL"
## LIMIT TO 12 MAXIMUM COPY PER DAY PER PLAYER
[[ $boucle == 13 ]] && echo "MAXIMUM COPY REACHED FOR TODAY" && continue
[[ $tot == 13 ]] && echo "MAXIMUM COPY REACHED FOR TODAY" && continue
TITLE="$(yt-dlp $BROWSER --print "%(title)s" "${ZYURL}" | detox --inline)"
[[ ! $TITLE ]] && echo "NO TITLE" && continue
@ -222,6 +223,7 @@ if [[ ! ${TIDDLER} ]]; then
]
' > "$HOME/.zen/tmp/$IPFSNODEID/G1CopierYoutube/$PLAYER/$YID.TW.json"
tot=$((tot+1))
TIDDLER="$HOME/.zen/tmp/$IPFSNODEID/G1CopierYoutube/$PLAYER/$YID.TW.json"

View File

@ -1,5 +1,7 @@
#!/bin/bash
ipfs stats dht wan
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#");
do
ipfsnodeid=${bootnode##*/}
@ -10,6 +12,6 @@ for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#");
done
ipfs stats dht wan
echo "TODO : search for bootstrap and friends better connectivity"