fix: next episode modal not displaying after resume from homepage.

This commit is contained in:
Trevor Mears
2026-01-22 18:55:06 -08:00
parent ac6c82e3fc
commit c042ff37b1
2 changed files with 25 additions and 2 deletions
+6 -2
View File
@@ -1381,13 +1381,17 @@ class WatchPage {
subtitle: this.content.subtitle || (this.content.type === 'movie' ? 'Movie' : 'Series'),
poster: this.content.poster,
sourceId: this.content.sourceId,
containerExtension: this.containerExtension
containerExtension: this.containerExtension,
// Series-specific fields for next episode functionality
seriesId: this.content.seriesId || null,
currentSeason: this.currentSeason || null,
currentEpisode: this.currentEpisode || null
};
await window.API.request('POST', '/history', {
id: this.content.id,
type: this.content.type === 'movie' ? 'movie' : 'episode',
sourceId: this.content.sourceId, // Add sourceId at top level for resume
sourceId: this.content.sourceId,
progress,
duration,
data