File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 116116 else if itemType = "Episode"
117117 m.currentEpisodeId = data.id
118118 m.currentEpisodeSeasonNumber = data.parentIndexNumber
119+ m.episodeSeriesId = data.seriesId
119120 m.top.rowItemSize = [[234, 396]]
120121 m.LoadSeasonEpisodesTask.observeField("content", "onSeasonEpisodesLoaded")
121122 m.LoadSeasonEpisodesTask.itemId = data.seriesId
264265 m.rowCast = invalid
265266 end if
266267 m.LikeThisTask.observeField("content", "onLikeThisLoaded")
267- m.LikeThisTask.itemId = m.top.parentId
268+ ' For Episode, query similar items against the parent series since Jellyfin returns
269+ ' no results for individual episode IDs.
270+ if m.top.type = "Episode" and isValid(m.episodeSeriesId) and m.episodeSeriesId <> ""
271+ m.LikeThisTask.itemId = m.episodeSeriesId
272+ else
273+ m.LikeThisTask.itemId = m.top.parentId
274+ end if
268275 m.LikeThisTask.control = "RUN"
269276end sub
270277
You can’t perform that action at this time.
0 commit comments