Commit b048cd0

xxwhirlpool  ·  2026-04-16 15:37:29 -0400 EDT
parent 26f855d
misc
3 files changed,  +3, -3
+0, -1
......@@ -1,4 +1,3 @@
11 #!/usr/bin/env bash
22
33 xclip -sel clip -target image/png -o
4-
+3, -2
......@@ -1,12 +1,13 @@
11 #!/usr/bin/env bash
22
33 URL="$1"
4+vidname="$2"
45
5-if [[ $# -eq 0 ]]; then
6+if [[ "$#" -eq 0 || "$#" -ne 2 ]]; then
67 echo "Usage: ytbest [URL]"
78 exit 1
89 fi
910
1011 # format:
1112 # best audio + best video
12-yt-dlp -f "ba+bv" "$URL"
13+yt-dlp -f "ba+bv" "$URL" -o "$vidname"
+0, -0
Binaries are not rendered as diffs.