19 lines
245 B
Go
19 lines
245 B
Go
|
package youtube
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"log"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestNew(t *testing.T) {
|
||
|
client := New()
|
||
|
video, err := client.GetVideoFromID("LHsGz91Ivwg")
|
||
|
if err != nil {
|
||
|
log.Println(err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
fmt.Println(video.GetHLSPlaylist("234"))
|
||
|
}
|