about summary refs log tree commit diff stats
path: root/bin/yw
diff options
context:
space:
mode:
Diffstat (limited to 'bin/yw')
-rwxr-xr-xbin/yw4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/yw b/bin/yw
new file mode 100755
index 0000000..4e0337f
--- /dev/null
+++ b/bin/yw
@@ -0,0 +1,4 @@
+#!/bin/sh
+# for streaming things from yt-dlp to mpv. $1 is the url
+yt-dlp -f b/bv*+ba --external-downloader curl -o - "$1" 2> $HOME_LOG/ytdl.log | mpv - > /dev/null
+rm -f -- -.*.vtt