From 85d60470a70940509f6d5723afaed568b5f75533 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Tue, 7 Nov 2023 02:17:26 +0100 Subject: [PATCH] what... --- arbit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arbit b/arbit index 1508d31..9332c68 100755 --- a/arbit +++ b/arbit @@ -36,10 +36,15 @@ clipboardQuery(){ pipe-viewer --player=mpv "${clipboardContent}" } +downloadCommand(){ + #yt-dlp --embed-chapters --embed-metadata --embed-subs -o "${downloadDir}/%(title)s - %(uploader)s.%(ext)s" "$1" + yt-dlp -o "${downloadDir}/%(title)s - %(uploader)s.%(ext)s" "$1" +} + downloadClipUrl(){ getClip notify-send "Arbit" "Downloading video to ${downloadDir}" - if yt-dlp --embed-chapters --embed-metadata --embed-subs -o "${downloadDir}/%(title)s - %(uploader)s.%(ext)s" "${clipboardContent}" + if downloadCommand "${clipboardContent}" then notify-send "Arbit" "Finished downloading video." else die "Failed to download file" fi