summaryrefslogtreecommitdiff
path: root/mkvtool
diff options
context:
space:
mode:
authorb5f0d6c3 <[email protected]>2022-05-03 15:40:41 +0800
committerb5f0d6c3 <[email protected]>2022-05-03 15:40:41 +0800
commit9c14d0408b0736c49925ee9272e15409eff7cf92 (patch)
tree45b90d0b2c9f13428d92355ef3b137a2190a8fbf /mkvtool
parentaf54c17128f87ca92915e613c346c0edd0885524 (diff)
update mkvtool:mkvlib bump to v1.8.0
Diffstat (limited to 'mkvtool')
-rw-r--r--mkvtool/go.mod2
-rw-r--r--mkvtool/main.go12
2 files changed, 9 insertions, 5 deletions
diff --git a/mkvtool/go.mod b/mkvtool/go.mod
index 39e25ac..ac69a16 100644
--- a/mkvtool/go.mod
+++ b/mkvtool/go.mod
@@ -2,7 +2,7 @@ module github.com/KurenaiRyu/MkvAutoSubset/mkvtool
go 1.18
-require github.com/KurenaiRyu/MkvAutoSubset/mkvlib v0.0.0-20220503050011-aa9747d0d43f
+require github.com/KurenaiRyu/MkvAutoSubset/mkvlib v0.0.0-20220503073509-af54c17128f8
require github.com/google/uuid v1.3.0
diff --git a/mkvtool/main.go b/mkvtool/main.go
index d20f511..3c8f34d 100644
--- a/mkvtool/main.go
+++ b/mkvtool/main.go
@@ -19,7 +19,7 @@ import (
)
const appName = "MKV Tool"
-const appVer = "v3.7.7"
+const appVer = "v3.7.8"
const tTitle = appName + " " + appVer
var appFN = fmt.Sprintf("%s %s %s/%s", appName, appVer, runtime.GOOS, runtime.GOARCH)
@@ -170,13 +170,17 @@ func main() {
processer.Cache(ccs)
}
- if l && s != "" {
- list := processer.GetFontsList(s, nil)
+ if l && (s != "" || f != "") {
+ files := []string{f}
+ if s != "" {
+ files, _ = findPath(s, `\.ass$`)
+ }
+ list := processer.GetFontsList(files, nil)
if len(list) > 0 {
fmt.Println(strings.Join(list, "\n"))
}
if cfc {
- if !processer.CopyFontsFromCache(s, co, nil) {
+ if !processer.CopyFontsFromCache(files, co, nil) {
ec++
return
}