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;