Refined show details implementation to properly handle season loading
This commit is contained in:
parent
789930997d
commit
e3c9e5f54c
10
main.js
10
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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user