Compare commits

...

4 Commits

2 changed files with 6 additions and 4 deletions

View File

@ -16,12 +16,13 @@
<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?></p>
<p class="list-group-item-text"><?=$name?> - <?=$archive_count?> archive<?=($archive_count == 1 ? '' : 's')?></p>
</a>
</div>
<?php } ?>

View File

@ -7,8 +7,9 @@ $excluded_djs = [
"cat",
"dctrud",
"epoch",
"vivi",
"rawktucc",
"ten_forward"
"vivi",
];
if ($json["live"]["is_live"]) {
@ -26,8 +27,8 @@ if ($json["live"]["is_live"]) {
copy(__DIR__."/../djindex.php", __DIR__."/../$streamer/index.php");
}
$standard_stream = "https://radio.tildeverse.org/radio/8000/radio.ogg";
$testing_stream = "https://radio.tildeverse.org/radio/8010/radio.mp3";
$standard_stream = "https://azuracast.tilderadio.org/radio/8000/radio.ogg";
$testing_stream = "https://azuracast.tilderadio.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);