Added ability to specify port and RSS file as command line arguments

This commit is contained in:
2024-03-30 09:55:37 +01:00
parent 26988ecf6a
commit 6e3c4bf647
3 changed files with 15 additions and 3 deletions

View File

@ -319,7 +319,7 @@ func PublishArticle(c *control.CliArgs, db *model.DB, s *control.CookieStore) ht
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
if err = control.SaveRSS("tmp/orientexpress_alle.rss", feed); err != nil {
if err = control.SaveRSS(c.RSSFile, feed); err != nil {
log.Println(err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return