From 321d9a8247d50cd634615ffed707aed3f4376108 Mon Sep 17 00:00:00 2001 From: Tharre Date: Wed, 9 May 2018 02:58:18 +0200 Subject: Move various scripts and functions into bin/ --- bin/play | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/play (limited to 'bin/play') diff --git a/bin/play b/bin/play new file mode 100755 index 0000000..ed70ce9 --- /dev/null +++ b/bin/play @@ -0,0 +1,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 -- cgit v1.2.3-70-g09d2