This commit is contained in:
Gregory Salaun 2024-09-24 15:31:11 +07:00
parent 071e230aed
commit 02c511b1eb

View File

@ -64,6 +64,8 @@ func (m *MediaFiles) SendGotify(message string, arr string, cfg *Config) {
if cfg.Gotify.Enabled { if cfg.Gotify.Enabled {
http.PostForm(cfg.Gotify.ServerURL+"/message?token="+cfg.Gotify.Token, http.PostForm(cfg.Gotify.ServerURL+"/message?token="+cfg.Gotify.Token,
url.Values{"message": {message}, "title": {"Deleting Media from " + arr}, "priority": {"10"}}) url.Values{"message": {message}, "title": {"Deleting Media from " + arr}, "priority": {"10"}})
log.Printf("Message sent to Gotify: %s", message)
} }
} }