This commit is contained in:
fred 2022-09-15 14:55:11 +02:00
parent 12be7889cd
commit ea8a98b92a
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID)
rm -f ~/.zen/game/players/.current
ln -s ~/.zen/game/players/$PLAYER ~/.zen/game/players/.current
[[ $PLAYERONE ]] && pass=$(cat ~/.zen/game/players/.current/.pass 2>/dev/null)
pass=$(cat ~/.zen/game/players/.current/.pass 2>/dev/null)
########################################## DEVEL
[[ ! $pass ]] && echo "Saisissez votre PASS -- UPGRADE CRYPTO FREELY --" && read pass

View File

@ -38,15 +38,15 @@ for yurl in $(cat ~/.zen/tmp/tiddlers.json | jq -r '.[].text' | grep 'http'); do
# SUBS ? --write-subs --write-auto-subs --sub-langs "en, en-orig" --embed-subs
# TODO : DELAY COPY OPERATION... Astro can download quicker at 03:00 AM
echo "yt-dlp -f \"bv*[ext=mp4][height<=480]+ba/b[height<=480] / wv*+ba/w\" --no-mtime --embed-thumbnail --add-metadata -o \"$HOME/.zen/tmp/tube/%(title)s.%(ext)s\" ${yurl}"
yt-dlp -f "bv*[ext=mp4][height<=480]+ba/b[height<=480] / wv*[ext=mp4]+ba/w" --no-mtime --embed-thumbnail --add-metadata -o "$HOME/.zen/tmp/tube/%(title)s.%(ext)s" ${yurl}
yt-dlp -f "bv*[ext=mp4][height<=480]+ba/b[height<=480] / wv*+ba/w" --no-mtime --embed-thumbnail --add-metadata -o "$HOME/.zen/tmp/tube/%(title)s.%(ext)s" ${yurl}
echo
# Get last writen file... TODO: Could we do better ?
# ZFILE=$(ls -t ~/.zen/tmp/tube/*.mp4 | head -n 1)
TITLE=$(yt-dlp --print title ${yurl})
echo $TITLE
echo "$TITLE"
ZFILE=$(ls "$HOME/.zen/tmp/tube/$TITLE"* | head -n 1)
echo $ZFILE
echo "$ZFILE"
[[ ! -f "$HOME/.zen/tmp/tube/$ZFILE" ]] && echo "No FILE -- EXIT --" && exit 1
echo