This commit is contained in:
fred 2022-09-15 21:17:48 +02:00
parent ef3d565b1d
commit b58ab40a23
1 changed files with 1 additions and 2 deletions

View File

@ -45,8 +45,7 @@ for yurl in $(cat ~/.zen/tmp/tiddlers.json | jq -r '.[].text' | grep 'http'); do
# ZFILE=$(ls -t ~/.zen/tmp/tube/*.mp4 | head -n 1)
TITLE=$(yt-dlp --print title ${yurl})
echo "$TITLE"
ZFILE=$(ls "$HOME/.zen/tmp/tube/$TITLE"* | head -n 1)
ZFILE=${ZFILE##/*/}
ZFILE="$TITLE.mp4"
echo "$ZFILE"
[[ ! -f "$HOME/.zen/tmp/tube/$ZFILE" ]] && echo "No FILE -- EXIT --" && exit 1