Commit cbb3588
xxwhirlpool
·
2025-10-28 16:53:14 -0400 EDT
parent 15ee553
snsclip
2 files changed,
+18,
-0
+1,
-0
| ... | ... | @@ -31,3 +31,4 @@ config/.local/bin/normalizer | |
| 31 | 31 | config/.local/bin/x-wr-timezone | |
| 32 | 32 | config/.config/micro/plug/ | |
| 33 | 33 | config/.local/bin/pylsp | |
| 34 | + | config/.local/bin/kaomoji.sh |
+17,
-0
| ... | ... | @@ -0,0 +1,17 @@ | |
| 1 | + | #!/usr/bin/env bash | |
| 2 | + | # | |
| 3 | + | # yt-dlp wrapper for quickly making clips | |
| 4 | + | # to share on social media | |
| 5 | + | # | |
| 6 | + | # usage: | |
| 7 | + | # snsclip YT_LINK "desired title of output file" | |
| 8 | + | ||
| 9 | + | URL="$1" | |
| 10 | + | FILE_OUT_NAME="$2" | |
| 11 | + | ||
| 12 | + | if [ $# -eq 0 ]; then | |
| 13 | + | echo "please specify a URL followed by a title" | |
| 14 | + | exit 1 | |
| 15 | + | fi | |
| 16 | + | ||
| 17 | + | yt-dlp -f "ba+bv*[height<=1080p]" -o "$FILE_OUT_NAME" "$URL" --merge-output-format mp4 |