mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fix typos & add more comments
This commit is contained in:
parent
2e9ce3cf52
commit
3617955bc5
16 changed files with 82 additions and 68 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"net/http"
|
||||
)
|
||||
|
||||
// Subtitle contains the information about a video subtitle.
|
||||
type Subtitle struct {
|
||||
crunchy *Crunchyroll
|
||||
|
||||
|
|
@ -13,6 +14,7 @@ type Subtitle struct {
|
|||
Format string `json:"format"`
|
||||
}
|
||||
|
||||
// Save writes the subtitle to the given io.Writer.
|
||||
func (s Subtitle) Save(writer io.Writer) error {
|
||||
req, err := http.NewRequestWithContext(s.crunchy.Context, http.MethodGet, s.URL, nil)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue