ok trnscode swp

This commit is contained in:
Olive Vaughn 2026-08-26 02:16:50 -04:00
parent 54668c0d93
commit e9766de877
12 changed files with 221 additions and 243 deletions

17
internal/api/api_test.go Normal file
View file

@ -0,0 +1,17 @@
package api
import "testing"
func TestIsTextSubtitleCodec(t *testing.T) {
for _, codec := range []string{"ass", "ssa", "subrip", "srt", "text", "webvtt", "mov_text", "SUBRIP"} {
if !isTextSubtitleCodec(codec) {
t.Errorf("expected %q to be treated as text", codec)
}
}
for _, codec := range []string{"hdmv_pgs_subtitle", "dvd_subtitle", "dvb_subtitle", ""} {
if isTextSubtitleCodec(codec) {
t.Errorf("expected %q to require bitmap handling", codec)
}
}
}