forked from tilderadio/archive
Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Ben Harris | 4a46ddc3ab | |
Ben Harris | 2cfef83762 | |
Ben Harris | d451710f2f | |
Ben Harris | 6aa828f2a1 |
|
@ -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 } ?>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue