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