Skip to content

Commit 1c339c6

Browse files
committed
Update code docs
1 parent 456517b commit 1c339c6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

docs/components_extras_ExtrasRowList.bs.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
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
@@ -264,7 +265,13 @@
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"
269276
end sub
270277

0 commit comments

Comments
 (0)