Skip to content

Commit e2c57d4

Browse files
chore(docs): update code docs
1 parent 81b64e8 commit e2c57d4

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

docs/components_tasks_QuickPlayTask.bs.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
' Trailer, and Photo Album flows that require API calls.
1010
'
1111
' Input AA fields:
12-
' action (string) - dispatch key (e.g. "album", "playAllSeries", "instantMix", etc.)
12+
' action (string) - dispatch key (e.g. "musicalbum", "playAllSeries", "instantMix", etc.)
1313
' id (string) - primary item ID
1414
' seriesId (string) - optional, for season/episode context
1515
' collectionType (string) - optional, for collection/userView dispatch
@@ -40,9 +40,15 @@
4040
outputAction = "queue"
4141
firstItemStartingPoint = 0& ' LongInteger
4242

43-
if action = "musicalbum" or action = "album"
43+
' Dispatch convention: the action key is the lowercased Jellyfin item type
44+
' (e.g. "musicalbum", "boxset"), optionally with a literal operation prefix
45+
' ("playall..."). Producers build it from the raw type (main.bs: LCase(type)
46+
' and "playAll" + type), so keys must match Jellyfin's BaseItemKind exactly —
47+
' there is no bare "album"/"artist" type, only "MusicAlbum"/"MusicArtist".
48+
' The else branch below logs any unmatched action so drift can't fail silently.
49+
if action = "musicalbum"
4450
doAlbum(input, items)
45-
else if action = "musicartist" or action = "artist"
51+
else if action = "musicartist"
4652
doArtist(input, items)
4753
shouldShuffle = true
4854
else if action = "boxset"

0 commit comments

Comments
 (0)