Skip to content

Commit

Permalink
Fixed bugs with adding m3u8 vbr streams
Browse files Browse the repository at this point in the history
  • Loading branch information
nallion authored Jun 22, 2024
1 parent d35eb94 commit b016d70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addradio.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
$brmp3 = exec("ffmpeg -i $radiourl -f null 2>&1 | grep bitrate | awk -F ' ' '{print $6}'");
$braac = exec("ffmpeg -i $radiourl -f null 2>&1 | grep bitrate | awk -F ' ' '{print $4}'");
$brm3u8 = exec("ffmpeg -i $radiourl -f null 2>&1 | grep Stream | awk -F ' ' '{print $10}' | head -c 3");
$brm3u8fltp = exec("ffmpeg -i $radiourl -f null 2>&1 | grep Stream | awk -F ' ' '{print $9}' | head -c 4");
//echo $brm3u8;
if (empty($brmp3 | $braac | $brm3u8)) {
if (empty($brmp3 | $braac | $brm3u8 | $brm3u8fltp)) {
//if (empty($brmp3) | empty($braac) | empty($brm3u8)) {
echo "Error adding radio, cannot determine bitrate, maybe stream is dead?";
die();
Expand Down

0 comments on commit b016d70

Please sign in to comment.