From 05e1216b45340702f82a4946002015a05cebe9b1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 18 Jun 2024 16:12:01 +0200 Subject: checkpoint --- bin/extra/igdl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 bin/extra/igdl (limited to 'bin/extra/igdl') diff --git a/bin/extra/igdl b/bin/extra/igdl new file mode 100755 index 0000000..1973187 --- /dev/null +++ b/bin/extra/igdl @@ -0,0 +1,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" -- cgit v1.2.3