dots


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