diff --git a/djindex.php b/djindex.php index 813dda9..f6af54e 100644 --- a/djindex.php +++ b/djindex.php @@ -18,7 +18,7 @@ $dj = basename(__DIR__);

< back


diff --git a/index.php b/index.php index 523db9c..e4d9ced 100644 --- a/index.php +++ b/index.php @@ -14,9 +14,9 @@

back to tilderadio.org - listen now


diff --git a/webhook/index.php b/webhook/index.php index 0d378a6..e875335 100644 --- a/webhook/index.php +++ b/webhook/index.php @@ -10,15 +10,16 @@ if ($json->live->is_live) { // posix_kill with 0 signal tells you if the process is running if ($current_pid != "" && posix_kill($current_pid, 0)) die(); - $timestamp = date("Y-m-d\TH:i:s"); + $timestamp = date("Y-m-d\TH_i_s"); if (!is_dir(__DIR__."/../$streamer")) { mkdir(__DIR__."/../$streamer"); - copy(__DIR__."/../djindex.php", __DIR__."/../$streamer/index.php"); + copy(__DIR__."/../djindex.html", __DIR__."/../$streamer/index.html"); } $standard_stream = "https://radio.tildeverse.org/radio/8000/radio.ogg"; $testing_stream = "https://radio.tildeverse.org/radio/8010/radio.mp3"; - $cmd = "/usr/bin/ffmpeg -i $standard_stream ../$streamer/tilderadio-$timestamp.mp3 >out.log 2>&1 & echo $!"; + $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); echo $pid;