适配引擎升级

This commit is contained in:
dexter
2022-02-21 21:40:31 +08:00
parent c1bdd8fa8a
commit f7e4c060ab
4 changed files with 36 additions and 17 deletions

View File

@@ -70,7 +70,7 @@ func (puller *HDLPuller) OnEvent(event any) {
}(v + 1)
} else {
// TODO: 发布失败重新发布
if plugin.Publish(puller.StreamPath, puller) {
if plugin.Publish(puller.StreamPath, puller) == nil {
if strings.HasPrefix(puller.RemoteURL, "http") {
if res, err := http.Get(puller.RemoteURL); err == nil {
puller.Reader = res.Body