anonradio: fix empty slots

This commit is contained in:
Cynthia Foxwell 2022-12-18 13:04:20 -07:00
parent f50788420a
commit a3cf7aabee

View file

@ -55,6 +55,8 @@ async function updateNowPlaying() {
if (playing.includes("listeners with a daily peak of")) {
title = `${liveNow.name} (\`${liveNow.id}\`)`;
subtitle = playing;
} else if (playing.startsWith("Coming up")) {
title = playing;
} else {
const [_, current, peakDay, peakMonth, dj, metadata] = playing.match(
/\[(\d+)\/(\d+)\/(\d+)\] \((.+?)\): (.+)/