check if output is paused before attempting record split/chapter.

add note to changelog about supported file format for record chapter.
This commit is contained in:
2025-06-23 08:28:49 +01:00
parent 10d50df445
commit f01fd0ca84
2 changed files with 7 additions and 0 deletions

View File

@@ -204,6 +204,9 @@ func (cmd *RecordSplitCmd) Run(ctx *context) error {
if !status.OutputActive {
return fmt.Errorf("recording is not in progress")
}
if status.OutputPaused {
return fmt.Errorf("recording is paused, cannot split")
}
_, err = ctx.Client.Record.SplitRecordFile()
if err != nil {
@@ -229,6 +232,9 @@ func (cmd *RecordChapterCmd) Run(ctx *context) error {
if !status.OutputActive {
return fmt.Errorf("recording is not in progress")
}
if status.OutputPaused {
return fmt.Errorf("recording is paused, cannot create chapter")
}
var params *record.CreateRecordChapterParams
if cmd.ChapterName == "" {