curl instead of wget
This commit is contained in:
parent
f4495794fe
commit
df2cb7c079
1 changed files with 2 additions and 2 deletions
4
api.php
4
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;
|
||||
|
|
Loading…
Reference in a new issue