mirror of
https://github.com/Monibuca/plugin-record.git
synced 2025-12-24 13:07:51 +08:00
fix: start record fragment arg
This commit is contained in:
@@ -74,8 +74,7 @@ func (conf *RecordConfig) API_start(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
recorder := irecorder.GetRecorder()
|
||||
if fragment != "" {
|
||||
f, err := time.ParseDuration(fragment)
|
||||
if err != nil {
|
||||
if f, err := time.ParseDuration(fragment); err == nil {
|
||||
recorder.Fragment = f
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user