14 lines
231 B
Bash
Executable File
14 lines
231 B
Bash
Executable File
#!/bin/bash
|
|
name="$(yt-dlp -f 251 "$@" | grep -o 'Destination: .*' | sed 's/Destination: //')"
|
|
if [ -z "$name" ] ; then
|
|
echo "Empty name…"
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -f "$name" ] ; then
|
|
echo "Download failed"
|
|
exit 1
|
|
fi
|
|
|
|
touch "$name"
|