File tree Expand file tree Collapse file tree 3 files changed +60
-4
lines changed Expand file tree Collapse file tree 3 files changed +60
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Build customization
2
+ builds :
3
+ -
4
+ main : ./cmd/dcsub2srt/main.go
5
+ binary : dcsub2srt
6
+ goos :
7
+ - windows
8
+ - darwin
9
+ goarch :
10
+ - 386
11
+ - amd64
12
+ ignore :
13
+ - goos : darwin
14
+ goarch : 386
15
+ -
16
+ main : ./cmd/ssa2srt/main.go
17
+ binary : ssa2srt
18
+ goos :
19
+ - windows
20
+ - darwin
21
+ goarch :
22
+ - 386
23
+ - amd64
24
+ ignore :
25
+ - goos : darwin
26
+ goarch : 386
27
+ -
28
+ main : ./cmd/subber/main.go
29
+ binary : subber
30
+ goos :
31
+ - windows
32
+ - darwin
33
+ goarch :
34
+ - 386
35
+ - amd64
36
+ ignore :
37
+ - goos : darwin
38
+ goarch : 386
39
+ # Archive customization
40
+ archive :
41
+ format : tar.gz
42
+ format_overrides :
43
+ - goos : windows
44
+ format : zip
45
+ replacements :
46
+ amd64 : 64-bit
47
+ 386 : 32-bit
48
+ darwin : macOS
49
+ files :
50
+ - README.md
51
+ - LICENSE
Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
2
3
- Copyright (c) 2015-2017 Martin Lindhe
3
+ Copyright (c) 2015-2018 Martin Lindhe
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 3
3
[ ![ Travis-CI] ( https://api.travis-ci.org/martinlindhe/subtitles.svg )] ( https://travis-ci.org/martinlindhe/subtitles )
4
4
[ ![ GoDoc] ( https://godoc.org/github.com/martinlindhe/subtitles?status.svg )] ( https://godoc.org/github.com/martinlindhe/subtitles )
5
5
6
- Subtitles is a go library for handling .srt, .vtt and .ssa subtitles
7
-
6
+ This is a go library and command-line tools for handling .srt, .vtt and .ssa subtitles
8
7
9
8
10
9
# Installation
11
10
11
+ Windows and macOS binaries are available under [ Releases] ( https://github.com/martinlindhe/subtitles/releases )
12
+
13
+ Or install them from source:
14
+
12
15
```
13
16
go get -u github.com/martinlindhe/subtitles/...
14
17
```
15
18
19
+
16
20
# Example - convert srt to vtt
17
21
18
22
``` go
@@ -38,6 +42,7 @@ res, _ := subtitles.NewFromSRT(in)
38
42
fmt.Println (res.AsVTT ())
39
43
```
40
44
45
+
41
46
# Example - download subtitle from thesubdb.com
42
47
43
48
``` go
@@ -50,7 +55,7 @@ text, err := finder.TheSubDb()
50
55
```
51
56
52
57
53
- # See also
58
+ # Sub-projects
54
59
55
60
- [ subber] ( https://github.com/martinlindhe/subtitles/subber ) command line tool for subtitles
56
61
- [ ssa2srt] ( https://github.com/martinlindhe/subtitles/ssa2srt ) for converting .ssa to .srt
You can’t perform that action at this time.
0 commit comments