summaryrefslogblamecommitdiffstats
path: root/ytplay
blob: e505a3b21a559b0929d2b3a4eb029024c1f313ac (plain) (tree)
1
2
3
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)"