diff --git a/main.js b/main.js index a34f00e..0c95e75 100644 --- a/main.js +++ b/main.js @@ -218,17 +218,15 @@ ipcMain.handle('get-show-details', async (event, showId) => { throw new Error('Failed to authenticate with TVDB API: ' + loginError.message); } - // Since we can't get show details directly, we'll use the search endpoint with the show ID - // But we need to search by the actual show name, not ID, so we'll do a search first - // to get the show name, then we'll return the show data we already have + // Since we can't get season information directly from the show details endpoint, + // we'll return basic show information and let the UI handle season loading + // The seasons will be loaded when the user clicks on a season - // For now, let's just return the show ID and basic info since we can't get detailed info - // This is a limitation of the API approach we're using return { success: true, data: { id: showId, - name: 'Unknown Show', // We'll need to get this from search + name: 'Unknown Show', status: null, firstAired: null, overview: 'Show details not available',