MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder / Save

Method Save

pkg/settings/settings.go:127–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (s *Settings) Save() error {
128
129 // 需要检查 url 是否正确
130 newEmbyAddressUrl := removeSuffixAddressSlash(s.EmbySettings.AddressUrl)
131 _, err := url.Parse(newEmbyAddressUrl)
132 if err != nil {
133 return err
134 }
135 s.EmbySettings.AddressUrl = newEmbyAddressUrl
136
137 return strcut_json.ToFile(s.configFPath, s)
138}
139
140func (s *Settings) GetNoPasswordSettings() *Settings {
141

Callers 15

SubFormatChangerProcessFunction · 0.80
GetMediaInfoAndSaveFunction · 0.80
GetFunction · 0.80
SetFullNewSettingsFunction · 0.80
processMethod · 0.80
HotFixProcessFunction · 0.80
processMethod · 0.80
processMethod · 0.80
processMethod · 0.80
DailyDownloadCountAddMethod · 0.80
DownloadFileAddMethod · 0.80
TaskQueueSaveMethod · 0.80

Calls 2

ToFileFunction · 0.92
removeSuffixAddressSlashFunction · 0.85

Tested by

no test coverage detected