feat: add discover medias task
This commit is contained in:
@@ -31,15 +31,6 @@ func Test_DiscoverMedias(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func (t *DiscoverMediasTestSuite) Test_getHashID() {
|
||||
Convey("TestDiscoverMedias_getHashID", t.T(), func() {
|
||||
hashId, err := t.Svc.getHashID(10, 11, 12)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
t.T().Logf("HashID: %s", hashId)
|
||||
})
|
||||
}
|
||||
|
||||
func (t *DiscoverMediasTestSuite) Test_getSubDirs() {
|
||||
Convey("Test_getSubDirs", t.T(), func() {
|
||||
dirs, err := t.Svc.getSubDirs("/mnt/yangpingliang/动态曲谱")
|
||||
@@ -72,15 +63,3 @@ func (t *DiscoverMediasTestSuite) Test_ffmpegVideoToM3U8() {
|
||||
So(err, ShouldBeNil)
|
||||
})
|
||||
}
|
||||
|
||||
func (t *DiscoverMediasTestSuite) Test_parseM3u8File() {
|
||||
Convey("TestDiscoverMedias_parseM3u8File", t.T(), func() {
|
||||
file := "/projects/mp-qvyun/backend/fixtures/medias/abc/video/index.m3u8"
|
||||
playlist, err := t.Svc.parseM3u8File(file)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
t.T().Logf("Live: %+v", playlist.IsLive())
|
||||
t.T().Logf("IsMaster: %+v", playlist.IsMaster())
|
||||
t.T().Logf("Size: %+v", playlist.Segments())
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user