Fix typos

This commit is contained in:
IchBinLeoon 2021-11-20 00:47:52 +01:00
parent 20cdb64f54
commit 56015d3174
3 changed files with 5 additions and 5 deletions

View file

@ -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 {