feat: submit all torrent info to server

This commit is contained in:
Simon Ding
2024-07-24 21:24:36 +08:00
parent 1359df599b
commit e334acba32
3 changed files with 31 additions and 23 deletions

View File

@@ -309,7 +309,7 @@ func (s *Server) DownloadMovieTorrent(c *gin.Context) (interface{}, error) {
history, err := s.db.SaveHistoryRecord(ent.History{
MediaID: media.ID,
EpisodeID: ep.ID,
SourceTitle: media.NameCn,
SourceTitle: in.Name,
TargetDir: "./",
Status: history.StatusRunning,
Size: in.Size,