anonradio: pull openmic metadata
This commit is contained in:
parent
dd8fc1a7f4
commit
ea18e21d42
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ async function updateNowPlaying() {
|
|||
);
|
||||
if (streamData && streamData.stream_start_iso8601) {
|
||||
const startTime = new Date(streamData.stream_start_iso8601).getTime();
|
||||
title = `${streamData.title} (\`${streamData.server_name ? streamData.server_name + " | " + liveNow.id : liveNow.id}\`)`;
|
||||
openmicTime = `-\\*- OpenMIC DJ has been streaming for ${formatTime(
|
||||
Date.now() - startTime
|
||||
)} -\\*-\n`;
|
||||
|
|
Loading…
Reference in a new issue