diff --git a/calendar.js b/calendar.js index 45e2fee..2203094 100644 --- a/calendar.js +++ b/calendar.js @@ -153,24 +153,6 @@ const toggleButton = { }, }; -function appendSonarrHostnames() -{ - const names = icsUrls.map(item => item.name); - - for (const name of names) { - const rows = document.querySelectorAll(`.${name}`); - - for (const row of rows) { - const lastCell = row.querySelector('td:last-child'); - - const hostname = document.createElement('span'); - hostname.className = 'float-end'; - hostname.textContent = name; - lastCell.insertAdjacentElement('beforeend', hostname); - } - } -} - async function loadSonarrCalendar(shouldScroll = false) { const calendarElement = document.querySelector('#sonarr-calendar'); @@ -209,8 +191,6 @@ async function loadSonarrCalendar(shouldScroll = false) const message = document.querySelector('#status-message'); try { calendar.render(); - - appendSonarrHostnames(); if (message) { message.remove();