forked from STI/Astroport.ONE
14.20
This commit is contained in:
parent
4be445bdbc
commit
51e8498413
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue