forked from STI/Astroport.ONE
14.14
This commit is contained in:
parent
a7f38deda0
commit
69c46d4f36
|
@ -43,7 +43,8 @@ for yurl in $(cat ~/.zen/tmp/tiddlers.json | jq -r '.[].text' | grep 'http'); do
|
||||||
|
|
||||||
# Get last writen file... TODO: Could we do better ?
|
# Get last writen file... TODO: Could we do better ?
|
||||||
ZFILE=$(ls -t ~/.zen/tmp/tube/*.mp4 | head -n 1)
|
ZFILE=$(ls -t ~/.zen/tmp/tube/*.mp4 | head -n 1)
|
||||||
ZFILE="$(yt-dlp --print title ${yurl}).mp4"
|
TITLE=$(yt-dlp --print title ${yurl})
|
||||||
|
ZFILE="$TITLE.mp4"
|
||||||
[[ ! -f ~/.zen/tmp/tube/$ZFILE ]] && echo "No FILE -- EXIT --" && exit 1
|
[[ ! -f ~/.zen/tmp/tube/$ZFILE ]] && echo "No FILE -- EXIT --" && exit 1
|
||||||
|
|
||||||
echo "~/.zen/tmp/tube/$ZFILE downloaded"
|
echo "~/.zen/tmp/tube/$ZFILE downloaded"
|
||||||
|
|
Loading…
Reference in New Issue