This commit is contained in:
Gregory Salaun 2023-12-18 08:39:57 +07:00
parent d545e76bfa
commit 1736904539

View File

@ -61,10 +61,10 @@ func NewConfig(configPath string) (*Config, error) {
}
func (m *MediaFiles) SendGotify(message string, arr string, cfg *Config) {
http.PostForm(cfg.Gotify.ServerURL+"/message?token="+cfg.Gotify.Token,
url.Values{"message": {message}, "title": {"Deleting Media from " + arr}, "priority": {"10"}})
if cfg.Gotify.Enabled {
http.PostForm(cfg.Gotify.ServerURL+"/message?token="+cfg.Gotify.Token,
url.Values{"message": {message}, "title": {"Deleting Media from " + arr}, "priority": {"10"}})
}
}
func (m *MediaFiles) IsInFolder(cfg *Config) {