forked from STI/Astroport.ONE
[ext=mp4]
This commit is contained in:
parent
c98eecab74
commit
12be7889cd
|
@ -38,7 +38,7 @@ 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*+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}
|
||||
|
||||
echo
|
||||
# Get last writen file... TODO: Could we do better ?
|
||||
|
@ -47,10 +47,11 @@ for yurl in $(cat ~/.zen/tmp/tiddlers.json | jq -r '.[].text' | grep 'http'); do
|
|||
echo $TITLE
|
||||
ZFILE=$(ls "$HOME/.zen/tmp/tube/$TITLE"* | head -n 1)
|
||||
echo $ZFILE
|
||||
|
||||
[[ ! -f "$HOME/.zen/tmp/tube/$ZFILE" ]] && echo "No FILE -- EXIT --" && exit 1
|
||||
echo
|
||||
|
||||
echo "~/.zen/tmp/tube/$ZFILE downloaded"
|
||||
echo "FOUND : ~/.zen/tmp/tube/$ZFILE"
|
||||
|
||||
echo "Adding to IPFS"
|
||||
ILINK=$(ipfs add -q "$HOME/.zen/tmp/tube/$ZFILE" | tail -n 1)
|
||||
|
|
Loading…
Reference in New Issue