This commit is contained in:
CDN 2025-04-23 08:01:13 +08:00
parent aedc4a4518
commit 9b0e2ed6dc
Signed by: CDN
GPG key ID: 0C656827F9F80080
15 changed files with 693 additions and 540 deletions

24
internal/model/model.go Normal file
View file

@ -0,0 +1,24 @@
package model
// Timestamp represents a time in a subtitle file
type Timestamp struct {
Hours int
Minutes int
Seconds int
Milliseconds int
}
// Lyrics represents a lyrics file with metadata and content
type Lyrics struct {
Metadata map[string]string
Timeline []Timestamp
Content []string
}
// SRTEntry represents a single entry in an SRT file
type SRTEntry struct {
Number int
StartTime Timestamp
EndTime Timestamp
Content string
}