feat: basic ass processing (without style)

This commit is contained in:
CDN 2025-04-23 17:42:13 +08:00
parent 8897d7ae90
commit ebbf516689
Signed by: CDN
GPG key ID: 0C656827F9F80080
10 changed files with 2301 additions and 808 deletions

View file

@ -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)
}