diff options
author | Keuin <[email protected]> | 2023-07-01 22:10:22 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-07-01 22:10:44 +0800 |
commit | b8d0d0c3b6b2ffe40921aa4c247c101dd0ce958d (patch) | |
tree | c14f512312a6ee2fab6bdaef7cb55dfedbf19262 /recording/runner.go | |
parent | 8f07f6f4d7e91a9e4b7164a39759907fac5fb8a1 (diff) |
Refactor: rename consts to follow Go idiom. Fix const comment style.
Diffstat (limited to 'recording/runner.go')
-rw-r--r-- | recording/runner.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recording/runner.go b/recording/runner.go index fe7aa21..1f2f101 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -28,7 +28,7 @@ type TaskResult struct { Error error } -const kSpecialExtName = "partial" +const SpecialExtName = "partial" var errLiveEnded = common.NewRecoverableTaskError("live is ended", nil) @@ -281,7 +281,7 @@ func record( originalExtName := mo.TupleToResult(myurl.Url(streamSource.URL).FileExtension()).OrElse("flv") if task.Download.UseSpecialExtNameBeforeFinishing { - extName = kSpecialExtName + extName = SpecialExtName } else { extName = originalExtName } |