MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder / process

Method process

pkg/hot_fix/hot_fix_007.go:35–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (h HotFix007) process() (bool, error) {
36
37 if settings.Get().AdvancedSettings.SuppliersSettings.SubHD == nil {
38 settings.Get().AdvancedSettings.SuppliersSettings.SubHD = settings.NewOneSupplierSettings(common.SubSiteSubHd, common.SubSubHDRootUrlDef, common.SubSubHDSearchUrl, 20)
39 }
40
41 if settings.Get().AdvancedSettings.SuppliersSettings.Zimuku == nil {
42 settings.Get().AdvancedSettings.SuppliersSettings.Zimuku = settings.NewOneSupplierSettings(common.SubSiteZiMuKu, common.SubZiMuKuRootUrlDef, common.SubZiMuKuSearchFormatUrl, 20)
43 }
44
45 err := settings.Get().Save()
46 if err != nil {
47 return false, err
48 }
49 settings.Get(true)
50
51 return true, nil
52}

Callers 1

ProcessMethod · 0.95

Calls 3

GetFunction · 0.92
NewOneSupplierSettingsFunction · 0.92
SaveMethod · 0.80

Tested by

no test coverage detected