This commit is contained in:
ilya 2025-06-06 00:14:50 +02:00
parent 7b73d35774
commit 73fa6cf1b6
2 changed files with 13 additions and 0 deletions

BIN
qrc Executable file

Binary file not shown.

13
yt Executable file
View File

@ -0,0 +1,13 @@
#!/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"