From 51e84984136e5013cfd3f1cf937bd57527ef843e Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 15 Sep 2022 14:20:12 +0200 Subject: [PATCH] 14.20 --- tools/TUBE.copy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/TUBE.copy.sh b/tools/TUBE.copy.sh index 039284722..3c7788b38 100755 --- a/tools/TUBE.copy.sh +++ b/tools/TUBE.copy.sh @@ -44,7 +44,7 @@ for yurl in $(cat ~/.zen/tmp/tiddlers.json | jq -r '.[].text' | grep 'http'); do # 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}) - ZFILE=$(ls "$HOME/.zen/tmp/tube/$TITLE*" | head -n 1) + ZFILE=$(ls "$HOME/.zen/tmp/tube/$TITLE"* | head -n 1) [[ ! -f ~/.zen/tmp/tube/$ZFILE ]] && echo "No FILE -- EXIT --" && exit 1 echo "~/.zen/tmp/tube/$ZFILE downloaded"