anonradio: pull openmic metadata

This commit is contained in:
Cynthia Foxwell 2022-12-21 10:59:24 -07:00
parent dd8fc1a7f4
commit ea18e21d42

View file

@ -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`;