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");
|
header("Content-Type: audio/mpeg");
|
||||||
passthru(
|
passthru(
|
||||||
'/usr/bin/wget -q --user-agent='.escapeshellarg($UA).
|
'curl --user-agent '.escapeshellarg($UA).
|
||||||
' -O - '.escapeshellarg($video->url).
|
' '.escapeshellarg($video->url).
|
||||||
' | '.AVCONV.' -v quiet -i - -f mp3 -vn pipe:1'
|
' | '.AVCONV.' -v quiet -i - -f mp3 -vn pipe:1'
|
||||||
);
|
);
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in a new issue