|
@@ -64,11 +64,15 @@ async function main() {
|
|
|
urls = urls.map(httpsIze)
|
|
|
player.changeStreamURLs(urls)
|
|
|
document.querySelector('#radio-name').textContent = radio.getName()
|
|
|
- const show = radio.getShowAtTime()
|
|
|
let showName = ''
|
|
|
+ try {
|
|
|
+ const show = radio.getShowAtTime()
|
|
|
if (show !== null) {
|
|
|
showName = show.getName()
|
|
|
}
|
|
|
+ } catch {
|
|
|
+ true;
|
|
|
+ }
|
|
|
document.querySelector('#program-name').textContent = showName
|
|
|
|
|
|
setupProgrammi()
|