mirror of
https://github.com/teacat/chaturbate-dvr.git
synced 2025-10-29 16:59:59 +00:00
Fixed Sequence didnt reset
This commit is contained in:
parent
0e909286e1
commit
b8205a1b56
@ -116,7 +116,6 @@ func (ch *Channel) Pause() {
|
||||
ch.CancelFunc()
|
||||
|
||||
ch.Config.IsPaused = true
|
||||
ch.Sequence = 0
|
||||
ch.Update()
|
||||
ch.Info("channel paused")
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user