diff options
| author | b5f0d6c3 <[email protected]> | 2022-04-29 08:31:56 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-04-29 08:31:56 +0800 |
| commit | 9fd8a4735bb7d9127daeb21fa98c78c7ad9e5a7f (patch) | |
| tree | 01839ecc8526e23aaf8a55654684fc41216d6ef8 /mkvlib/ass.go | |
| parent | 31c46c2f40b69911be11fe5adad39dfc295a4f2b (diff) | |
update mkvlib:new parser
Diffstat (limited to 'mkvlib/ass.go')
| -rw-r--r-- | mkvlib/ass.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mkvlib/ass.go b/mkvlib/ass.go index ad2f4e9..5aa2e48 100644 --- a/mkvlib/ass.go +++ b/mkvlib/ass.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "encoding/json" "fmt" + "github.com/KurenaiRyu/MkvAutoSubset/mkvlib/parser" "github.com/antchfx/xmlquery" - "github.com/asticode/go-astisub" "io" "io/ioutil" "os" @@ -77,14 +77,14 @@ func (self *assProcessor) parse() bool { } } if ec == 0 { - opt := astisub.SSAOptions{} + opt := parser.SSAOptions{} reg, _ := regexp.Compile(`\\fn@?([^\r\n\\\}]*)`) _reg, _ := regexp.Compile(`\\([bir])([^\r\n\\\}]*)`) __reg, _ := regexp.Compile(`nd\d+`) ___reg, _ := regexp.Compile(`\s`) m := make(map[string]string) for k, v := range self.subtitles { - subtitle, err := astisub.ReadFromSSAWithOptions(strings.NewReader(v), opt) + subtitle, err := parser.ReadFromSSAWithOptions(strings.NewReader(v), opt) if err != nil { ec++ printLog(self.lcb, `Failed to read the ass file: "%s"`, k) |
