diff options
Diffstat (limited to 'ytplay')
-rwxr-xr-x | ytplay | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)" |