feat: support srt
This commit is contained in:
parent
00deeaf425
commit
7d5a8bdf54
5 changed files with 205 additions and 21 deletions
12
model.go
12
model.go
|
@ -13,17 +13,27 @@ type Lyrics struct {
|
|||
Content []string
|
||||
}
|
||||
|
||||
type SRTEntry struct {
|
||||
Number int
|
||||
StartTime Timestamp
|
||||
EndTime Timestamp
|
||||
Content string
|
||||
}
|
||||
|
||||
const (
|
||||
VERSION = "0.2.0"
|
||||
USAGE = `Usage: lyc-cli [command] [options]
|
||||
Commands:
|
||||
sync Synchronize timeline of two lyrics files
|
||||
convert Convert lyrics file to another format
|
||||
fmt Format lyrics file
|
||||
help Show help`
|
||||
|
||||
SYNC_USAGE = `Usage: lyc-cli sync <source> <target>`
|
||||
CONVERT_USAGE = `Usage: lyc-cli convert <source> <target>
|
||||
Note:
|
||||
Target format is determined by file extension. Supported formats:
|
||||
.txt Plain text format(No meta/timeline tags)`
|
||||
.txt Plain text format(No meta/timeline tags, only support as target format)
|
||||
.srt SubRip Subtitle format
|
||||
.lrc LRC format`
|
||||
)
|
||||
|
|
Reference in a new issue