This commit is contained in:
Pierre Rudloff 2015-05-16 03:23:55 +02:00
parent 8d39c646ec
commit f4495794fe
4 changed files with 11 additions and 4 deletions

View file

@ -39,7 +39,7 @@ if (isset($_GET["url"])) {
header("Content-Type: audio/mpeg");
passthru(
'/usr/bin/rtmpdump -q -r '.escapeshellarg($video->url).
' | /usr/bin/avconv -v quiet -i - -f mp3 -vn pipe:1'
' | '.AVCONV.' -v quiet -i - -f mp3 -vn pipe:1'
);
exit;
} else {
@ -57,7 +57,7 @@ if (isset($_GET["url"])) {
passthru(
'/usr/bin/wget -q --user-agent='.escapeshellarg($UA).
' -O - '.escapeshellarg($video->url).
' | /usr/bin/avconv -v quiet -i - -f mp3 -vn pipe:1'
' | '.AVCONV.' -v quiet -i - -f mp3 -vn pipe:1'
);
exit;
}