summaryrefslogtreecommitdiffstats
path: root/bin/play
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-05-09 02:58:18 +0200
committerTharre <tharre3@gmail.com>2018-05-09 17:28:13 +0200
commit321d9a8247d50cd634615ffed707aed3f4376108 (patch)
tree32fbd27e3a9e8c3f41d68232ffe203ef0ce10999 /bin/play
parent3cb67ddae1d11e4cda22b9843665b6d3775828da (diff)
downloaddotfiles-321d9a8247d50cd634615ffed707aed3f4376108.tar.gz
dotfiles-321d9a8247d50cd634615ffed707aed3f4376108.tar.xz
dotfiles-321d9a8247d50cd634615ffed707aed3f4376108.zip
Move various scripts and functions into bin/
Diffstat (limited to 'bin/play')
-rwxr-xr-xbin/play12
1 files changed, 12 insertions, 0 deletions
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