blob: ed70ce9a48b4d202492aca9d667388a5a61eeb74 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# requires youtube-dl, mpv
# Skip DASH manifest for speed purposes. This might actually disable
# being able to specify things like 'bestaudio' as the requested format,
# but try anyway.
# Use "$*" so that quoting the requested song isn't necessary.
mpv $(youtube-dl --default-search=ytsearch: \
--max-downloads 1 \
--youtube-skip-dash-manifest \
--format="bestaudio/best" \
-g "$*") --no-video
|