mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Fix typos
This commit is contained in:
parent
20cdb64f54
commit
56015d3174
3 changed files with 5 additions and 5 deletions
|
|
@ -180,7 +180,7 @@ func (f *Format) getCrypt(segment *m3u8.MediaSegment) (block cipher.Block, iv []
|
|||
return block, iv, nil
|
||||
}
|
||||
|
||||
// downloadSegment downloads a segments, decrypts it and names it after the given index
|
||||
// downloadSegment downloads a segment, decrypts it and names it after the given index
|
||||
func (f *Format) downloadSegment(segment *m3u8.MediaSegment, filename string, block cipher.Block, iv []byte) (*os.File, error) {
|
||||
// every segment is aes-128 encrypted and has to be decrypted when downloaded
|
||||
content, err := decryptSegment(f.crunchy.Client, segment, block, iv)
|
||||
|
|
@ -200,7 +200,7 @@ func (f *Format) downloadSegment(segment *m3u8.MediaSegment, filename string, bl
|
|||
return file, nil
|
||||
}
|
||||
|
||||
// mergeSegments reads every file in tempPath and write their content to output
|
||||
// mergeSegments reads every file in tempPath and writes their content to output
|
||||
func (f *Format) mergeSegments(tempPath string, output *os.File) error {
|
||||
dir, err := os.ReadDir(tempPath)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue