feat: activity page

This commit is contained in:
Simon Ding
2024-07-13 17:23:27 +08:00
parent 01408cdd89
commit 85f8750908
11 changed files with 178 additions and 22 deletions

View File

@@ -131,7 +131,7 @@ func (s *Server) searchAndDownload(seriesId, seasonNum, episodeNum int) (*string
if err != nil {
return nil, errors.Wrap(err, "save record")
}
s.tasks[history.ID] = torrent
s.tasks[history.ID] = &Task{Torrent: torrent}
log.Infof("success add %s to download task", r1.Name)
return &r1.Name, nil