Fixed Sequence didnt reset

This commit is contained in:
Yami Odymel 2025-06-25 06:04:49 +08:00
parent 0e909286e1
commit b8205a1b56
No known key found for this signature in database
GPG Key ID: 68E469836934DB36
2 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,6 @@ func (ch *Channel) Pause() {
ch.CancelFunc()
ch.Config.IsPaused = true
ch.Sequence = 0
ch.Update()
ch.Info("channel paused")
}

View File

@ -81,6 +81,7 @@ func (ch *Channel) RecordStream(ctx context.Context, client *chaturbate.Client)
return fmt.Errorf("get stream: %w", err)
}
ch.StreamedAt = time.Now().Unix()
ch.Sequence = 0
if err := ch.NextFile(); err != nil {
return fmt.Errorf("next file: %w", err)