Refined show details implementation to properly handle season loading
This commit is contained in:
parent
17a53345eb
commit
d8bbaee977
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);
|
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
|
// Since we can't get season information directly from the show details endpoint,
|
||||||
// But we need to search by the actual show name, not ID, so we'll do a search first
|
// we'll return basic show information and let the UI handle season loading
|
||||||
// to get the show name, then we'll return the show data we already have
|
// 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 {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
data: {
|
data: {
|
||||||
id: showId,
|
id: showId,
|
||||||
name: 'Unknown Show', // We'll need to get this from search
|
name: 'Unknown Show',
|
||||||
status: null,
|
status: null,
|
||||||
firstAired: null,
|
firstAired: null,
|
||||||
overview: 'Show details not available',
|
overview: 'Show details not available',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user