forked from STI/Astroport.ONE
MAKE BETTER THAN RANDOM !! CONNECT TO THE WARM...
This commit is contained in:
parent
dbb50dade4
commit
68975f3d0f
@ -69,11 +69,11 @@ for YURL in $(cat ~/.zen/game/players/${PLAYER}/G1CopierYoutube/CopierYoutube.js
|
|||||||
lastrun=$(echo "$CMD" | rev | cut -d ':' -f 1 | rev) && echo "$CMD"
|
lastrun=$(echo "$CMD" | rev | cut -d ':' -f 1 | rev) && echo "$CMD"
|
||||||
duree=$(expr ${MOATS} - $lastrun)
|
duree=$(expr ${MOATS} - $lastrun)
|
||||||
fi
|
fi
|
||||||
# ONE WEEK NEW SCAN
|
# ONE WEEK NEW SCAN
|
||||||
if [[ $duree -ge 604800000 || ! -s ~/.zen/game/players/${PLAYER}/G1CopierYoutube/yt-dlp.cache.${PLAYER} ]]; then
|
if [[ $duree -ge 604800000 || ! -s ~/.zen/game/players/${PLAYER}/G1CopierYoutube/yt-dlp.cache.${PLAYER} ]]; then
|
||||||
/usr/local/bin/yt-dlp $BROWSER --print "%(id)s&%(webpage_url)s" "${YURL}" >> ~/.zen/game/players/${PLAYER}/G1CopierYoutube/yt-dlp.cache.${PLAYER}
|
/usr/local/bin/yt-dlp $BROWSER --print "%(id)s&%(webpage_url)s" "${YURL}" >> ~/.zen/game/players/${PLAYER}/G1CopierYoutube/yt-dlp.cache.${PLAYER}
|
||||||
sed -i "s~$lastrun~$MOATS~g" ~/.zen/game/players/${PLAYER}/G1CopierYoutube/yt-dlp.command # UPDATE LASTRUN
|
sed -i "s~$lastrun~$MOATS~g" ~/.zen/game/players/${PLAYER}/G1CopierYoutube/yt-dlp.command # UPDATE LASTRUN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done # FINISH YURL loop
|
done # FINISH YURL loop
|
||||||
|
|
||||||
@ -94,6 +94,9 @@ while read LINE;
|
|||||||
echo "_____ $LINE _____ $boucle"
|
echo "_____ $LINE _____ $boucle"
|
||||||
YID="$(echo "$LINE" | rev | cut -d '=' -f 1 | rev )"
|
YID="$(echo "$LINE" | rev | cut -d '=' -f 1 | rev )"
|
||||||
|
|
||||||
|
#~ [[ $boucle -gt 50 ]] && break ## TODO SCAN FOR ABROAD SAME COPY DONE
|
||||||
|
### MAKE BETTER THAN RANDOM !! CONNECT TO THE WARM...
|
||||||
|
|
||||||
###################################################################
|
###################################################################
|
||||||
## Search for $YID.TW.json TIDDLER in local & MySwarm cache
|
## Search for $YID.TW.json TIDDLER in local & MySwarm cache
|
||||||
#~ echo "--- CACHE SEARCH FOR $YID ---"
|
#~ echo "--- CACHE SEARCH FOR $YID ---"
|
||||||
|
Loading…
Reference in New Issue
Block a user