From 86f99da8d08e1f2e290d8ebfd5adb016faff7bac Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Sat, 24 Sep 2022 12:21:56 +0530 Subject: script's --- ytplay | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 ytplay (limited to 'ytplay') diff --git a/ytplay b/ytplay new file mode 100755 index 0000000..e505a3b --- /dev/null +++ b/ytplay @@ -0,0 +1,4 @@ +#!/bin/sh + +query=$(printf '%s' "$*" | tr ' ' '+' ) +mpv "https://youtube.com/$(curl -s "https://vid.puffyan.us/search?q=$query" | grep -Eo "watch\?v=.{11}" | head -n 1)" -- cgit v1.2.3-59-g8ed1b