From df2cb7c0791e79e5fe336e52d15e63572f5f3901 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 16 May 2015 03:34:13 +0200 Subject: [PATCH] curl instead of wget --- api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.php b/api.php index 3a7fdf0..cf18c14 100644 --- a/api.php +++ b/api.php @@ -55,8 +55,8 @@ if (isset($_GET["url"])) { ); header("Content-Type: audio/mpeg"); passthru( - '/usr/bin/wget -q --user-agent='.escapeshellarg($UA). - ' -O - '.escapeshellarg($video->url). + 'curl --user-agent '.escapeshellarg($UA). + ' '.escapeshellarg($video->url). ' | '.AVCONV.' -v quiet -i - -f mp3 -vn pipe:1' ); exit;