From cbc5ba3df7526aac02404e5598087a107ef1a43d Mon Sep 17 00:00:00 2001 From: patchoulistar Date: Tue, 7 May 2024 16:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=B5=81=EF=BC=8C=E5=B9=B6=E4=B8=94save=3D2=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E8=BF=94=E5=9B=9EEOF=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin.go b/plugin.go index 207c618..b1db0a3 100644 --- a/plugin.go +++ b/plugin.go @@ -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{