Merge pull request #107 from patchoulistar/v4

修复在创建流,并且save=2的情况下返回EOF的错误。
This commit is contained in:
dexter
2024-05-07 17:09:29 +08:00
committed by GitHub

View File

@@ -302,6 +302,9 @@ func (opt *Plugin) Pull(streamPath string, url string, puller IPuller, save int)
m[id] = pullConf.PullOnSub[id]
}
m[streamPath] = url
if pullConf.PullOnSub == nil {
pullConf.PullOnSub = make(map[string]string)
}
pullConf.PullOnSub[streamPath] = url
opt.RawConfig.ParseModifyFile(map[string]any{
"pull": map[string]any{