You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -522,20 +522,17 @@ When passing an on-complete action on the command line, quote the whole value so
522
522
-`when=already-exists` - Execute only for already-existing skipped jobs
523
523
-`when=not-found-last-time` - Execute only for not-found-last-time skipped jobs
524
524
-`when=cancelled` - Execute only for cancelled jobs
525
-
-`when=partial` - Execute only for partially successful container jobs
526
525
-`when=completed` - Execute for all non-skipped terminal outcomes
527
526
-`when=any` - Execute for every terminal outcome
528
527
-`scope=track` - Execute only for track-level completions
529
528
-`scope=album` - Execute only for album-level completions
530
529
-`hidden` - Hide the command window
531
530
-`shell` - Use shell execute
532
531
-`lock` - Serialize this action across jobs
533
-
-`update-index` - Use stdout to update the index and playlistpath
532
+
-`update-index` - Read stdout as `success;new_path`, `failed`, or `ignored;new_path`to update the track/album entry in the index and playlist. `failed` clears the stored path; `ignored;new_path` leaves the state unchanged and updates only the path.
534
533
535
534
If `when=` is omitted, it behaves like `when=completed`. This preserves the usual "run when work completed" behavior while avoiding commands for already-existing or not-found-last-time skips.
536
535
537
-
Sockseek captures bounded stdout/stderr for ordinary on-complete commands, so chained commands can use output variables without an extra option. Commands launched with `shell` use shell execute and cannot expose stdout/stderr. When using `update-index`, stdout should be `ignored;new_path` to update the track path in the index and playlist.
538
-
539
536
### Variables
540
537
541
538
The available variables are the same as in [name-format](#available-variables), with the following additions:
@@ -546,6 +543,8 @@ The available variables are the same as in [name-format](#available-variables),
546
543
-`{first-stdout}` - First command's stdout
547
544
-`{first-stderr}` - First command's stderr
548
545
546
+
Sockseek captures bounded stdout/stderr for ordinary on-complete commands, so chained commands can use output variables from the previous ones. Commands launched with `shell` use shell execute and cannot expose stdout/stderr.
547
+
549
548
For album-only (`scope=album`) actions, tag variables such as `{title}`, `{artist}`, and `{album}` are read from the first audio file in the album. Job/source/path variables such as `{sartist}`, `{salbum}`, and `{path}` describe the album-level completion itself.
0 commit comments