blob: 1973187cd095f6db972573fb81f29c5b2748625b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
lock="/tmp/igdl.lock"
if [ -f "$lock" ]
then
herbe "already downloading."
exit 1
fi
url="$(clipo)"
out="/tmp/igdl.mp4"
touch "$lock"
herbe "igdl" "downloading: $url" &
yt-dlp "$url" -o "$out" || rm "$lock"
printf '%s' "$out" | clipp
herbe "igdl" "copied path."
rm "$lock"
|