fix: play segments
This commit is contained in:
@@ -45,15 +45,15 @@ func Test_DiscoverMedias(t *testing.T) {
|
||||
func (t *ServiceTestSuite) Test_getM3U8() {
|
||||
FocusConvey("Test_ffmpegVideoToM3U8", t.T(), func() {
|
||||
Convey("Bought", func() {
|
||||
hash := "f464a6641a60e2722e4042db8fad2813"
|
||||
media, err := t.Svc.GetM3U8(context.Background(), 1, pg.MediaTypeVideo, hash, true)
|
||||
hash := "907f1c8fd92704233600ae54a1d75092"
|
||||
media, err := t.Svc.GetM3U8(context.Background(), 1, pg.MediaTypeVideo, hash, true, "hello")
|
||||
So(err, ShouldBeNil)
|
||||
t.T().Logf("%+v", media)
|
||||
})
|
||||
|
||||
FocusConvey("Not Bought", func() {
|
||||
hash := "f464a6641a60e2722e4042db8fad2813"
|
||||
media, err := t.Svc.GetM3U8(context.Background(), 1, pg.MediaTypeVideo, hash, false)
|
||||
hash := "907f1c8fd92704233600ae54a1d75092"
|
||||
media, err := t.Svc.GetM3U8(context.Background(), 1, pg.MediaTypeVideo, hash, false, "hello")
|
||||
So(err, ShouldBeNil)
|
||||
t.T().Logf("%+v", media)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user