diff options
| author | ac79b0c6 <[email protected]> | 2022-05-07 19:44:12 +0800 |
|---|---|---|
| committer | ac79b0c6 <[email protected]> | 2022-05-07 19:44:12 +0800 |
| commit | 53393f26e5268814ad2c60d0cc69d71accd1cace (patch) | |
| tree | 3a6ece387b39dda5c933eddea9caf76eba846982 /mkvlib/ass2pgs.go | |
| parent | 37e7d0c56320b15898ab1fe63aace3c769e7aeba (diff) | |
update mkvlib
Diffstat (limited to 'mkvlib/ass2pgs.go')
| -rw-r--r-- | mkvlib/ass2pgs.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mkvlib/ass2pgs.go b/mkvlib/ass2pgs.go index fd5b438..166db1e 100644 --- a/mkvlib/ass2pgs.go +++ b/mkvlib/ass2pgs.go @@ -2,6 +2,7 @@ package mkvlib import ( "fmt" + "os" "path" ) @@ -23,6 +24,7 @@ func ass2Pgs(input []string, resolution, frameRate, fontsDir, output string, lcb r = err == nil && s.ExitCode() == 0 if !r { printLog(lcb, fmt.Sprintf(`Failed to Ass2Pgs:"%s"`, item)) + _ = os.Remove(fn) } } } |
