Compare commits

...

2 Commits

Author SHA1 Message Date
bel
c3bf31894c default nyaa 2025-05-08 11:03:37 -06:00
bel
e8b6396760 autofill empty form 2025-05-08 11:01:24 -06:00

View File

@@ -3,6 +3,7 @@ package handler
import (
"encoding/json"
"fmt"
"math/rand"
"net/http"
"os"
"path"
@@ -47,6 +48,12 @@ func (h Handler) uiIndex(w http.ResponseWriter, r *http.Request) error {
feeds.Entry `json:",inline"`
feeds.Version `json:",inline"`
}
editing.Version.Cron = fmt.Sprintf("%d */12 * * *", rand.Int()%60)
editing.Version.URL = "nyaa://?q=SOME_SHOW dual web-dl"
editing.Version.Pattern = ".*"
editing.Version.WebhookBody = "{{ .Item.Link }}"
editing.Version.WebhookMethod = "POST"
editing.Version.WebhookURL = "vpntor:///data/completed-rss/TITLE"
all := []feeds.Feed{}
if err := feeds.ForEach(ctx, func(f feeds.Feed) error {
all = append(all, f)