refactor
This commit is contained in:
parent
aedc4a4518
commit
9b0e2ed6dc
15 changed files with 693 additions and 540 deletions
24
internal/model/model.go
Normal file
24
internal/model/model.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue