From b3f486fc9efa6866e29aa7b0e8dd66c9cc40d8dc Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 4 Aug 2023 07:58:17 -0400 Subject: cmd/sanguisuga: don't double ID Signed-off-by: Xe Iaso --- cmd/sanguisuga/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/sanguisuga/main.go b/cmd/sanguisuga/main.go index ceeaefd..8a97dd9 100644 --- a/cmd/sanguisuga/main.go +++ b/cmd/sanguisuga/main.go @@ -175,7 +175,7 @@ func (s *Sanguisuga) HandleIRCMessage(ev *irc.Event) { torrentURL := ConvertURL(ta.TorrentID, s.Config.RSSKey, ta.Name) slog.Debug("found url", "url", torrentURL) - downloadDir := filepath.Join(show.DiskPath, fmt.Sprintf("Season %2d", ti.Season)) + downloadDir := filepath.Join(show.DiskPath, fmt.Sprintf("Season %02d", ti.Season)) var buf bytes.Buffer resp, err := http.Get(torrentURL) @@ -209,7 +209,7 @@ func (s *Sanguisuga) HandleIRCMessage(ev *irc.Event) { return } - slog.Info("added torrent", "title", ti.Title, "id", id, "path", downloadDir, "infohash", t.Hash, "dupe", dupe) + slog.Info("added torrent", "title", ti.Title, "id", id, "path", downloadDir, "infohash", t.Hash, "tid", t.ID, "dupe", dupe) s.db.Data.Seen[stateKey] = *ta if err := s.db.Save(); err != nil { -- cgit v1.2.3