diff --git a/renderer.js b/renderer.js index ef7ccfe..2d497ac 100644 --- a/renderer.js +++ b/renderer.js @@ -183,6 +183,11 @@ async function searchShows() { } } +// Clear search results when a show is selected +function clearSearchResults() { + searchResultsEl.innerHTML = ''; +} + // Test TVDB API connectivity async function testTVDBAPI() { try { @@ -249,6 +254,9 @@ async function selectShow(show) { console.log('Selected show:', show); currentShow = show; + // Clear search results when a show is selected + clearSearchResults(); + // Display show title document.getElementById('show-title').textContent = show.seriesName || show.name;