repo: music
action: commit
revision: 
path_from: 
revision_from: 76b65a4553481f562c44bcd12c64b56f641498f8:
path_to: 
revision_to: 
git.thebackupbox.net
music
git clone git://git.thebackupbox.net/music
commit 76b65a4553481f562c44bcd12c64b56f641498f8
Author: epoch 
Date:   Thu Jul 30 08:26:51 2020 -0500

    mpv uses youtube-dl anyway, so no point in calling it ourselves

diff --git a/youtube b/youtube
index c24ff9d1bbdae6e2c6f4ba9981ae229d39fc24b3..
index ..21dbd5a5d7d463850599c00ec35525bf7ad1a666 100755
--- a/youtube
+++ b/youtube
@@ -1,2 +1,4 @@
-#!/bin/sh
-stdbuf -o0 youtube-dl --audio-format opus "$1" -o - | mpv --no-video -
+#!/bin/bash
+set -eo pipefail
+# mpv uses youtube-dl anyway
+exec mpv --no-video --no-terminal "$1"

-----END OF PAGE-----