feat: basic ass processing (without style)
This commit is contained in:
parent
8897d7ae90
commit
ebbf516689
10 changed files with 2301 additions and 808 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"sub-cli/internal/format/ass"
|
||||
"sub-cli/internal/format/lrc"
|
||||
"sub-cli/internal/format/srt"
|
||||
"sub-cli/internal/format/vtt"
|
||||
|
@ -21,6 +22,8 @@ func Format(filePath string) error {
|
|||
return srt.Format(filePath)
|
||||
case "vtt":
|
||||
return vtt.Format(filePath)
|
||||
case "ass":
|
||||
return ass.Format(filePath)
|
||||
default:
|
||||
return fmt.Errorf("unsupported format for formatting: %s", ext)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue