Closed AngangGuo closed 1 year ago
According to the example from https://pkg.go.dev/github.com/kkdai/youtube/v2#example-Client.GetStream, the stream should be closed after finished download.
For [example_test.go[(https://github.com/kkdai/youtube/blob/master/example_test.go),, It's better to add defer stream.Close() at line 27.
defer stream.Close()
According to the example from https://pkg.go.dev/github.com/kkdai/youtube/v2#example-Client.GetStream, the stream should be closed after finished download.
For [example_test.go[(https://github.com/kkdai/youtube/blob/master/example_test.go),, It's better to add
defer stream.Close()
at line 27.