Compare commits
No commits in common. "master" and "master" have entirely different histories.
|
@ -16,13 +16,12 @@
|
|||
<hr>
|
||||
<?php
|
||||
foreach (glob("/var/www/archive/*") as $dir) {
|
||||
$archive_count = count(glob("$dir/*.mp3"));
|
||||
$name = basename($dir);
|
||||
if ($name == "webhook" || $name == "log" || !is_dir($dir)) continue;
|
||||
?>
|
||||
<div class="list-group">
|
||||
<a href="<?=$name?>/" class="list-group-item">
|
||||
<p class="list-group-item-text"><?=$name?> - <?=$archive_count?> archive<?=($archive_count == 1 ? '' : 's')?></p>
|
||||
<p class="list-group-item-text"><?=$name?></p>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
|
|
@ -7,9 +7,8 @@ $excluded_djs = [
|
|||
"cat",
|
||||
"dctrud",
|
||||
"epoch",
|
||||
"rawktucc",
|
||||
"ten_forward"
|
||||
"vivi",
|
||||
"ten_forward"
|
||||
];
|
||||
|
||||
if ($json["live"]["is_live"]) {
|
||||
|
@ -27,8 +26,8 @@ if ($json["live"]["is_live"]) {
|
|||
copy(__DIR__."/../djindex.php", __DIR__."/../$streamer/index.php");
|
||||
}
|
||||
|
||||
$standard_stream = "https://azuracast.tilderadio.org/radio/8000/radio.ogg";
|
||||
$testing_stream = "https://azuracast.tilderadio.org/radio/8010/radio.mp3";
|
||||
$standard_stream = "https://radio.tildeverse.org/radio/8000/radio.ogg";
|
||||
$testing_stream = "https://radio.tildeverse.org/radio/8010/radio.mp3";
|
||||
$metadata = "-metadata title=\"tilderadio archive - $timestamp\" -metadata artist=\"$streamer\"";
|
||||
$cmd = "/usr/bin/ffmpeg -i $standard_stream $metadata ../$streamer/tilderadio-$streamer-$timestamp.mp3 >out.log 2>&1 & echo $!";
|
||||
$pid = exec($cmd);
|
||||
|
|
Reference in New Issue