add file size

This commit is contained in:
Simon Ding
2024-07-15 15:46:02 +08:00
parent f0b334ebcd
commit 688e51dbb1
10 changed files with 253 additions and 2 deletions

View File

@@ -122,6 +122,7 @@ func (s *Server) searchAndDownload(seriesId, seasonNum, episodeNum int) (*string
SourceTitle: r1.Name,
TargetDir: dir,
Status: history.StatusRunning,
Size: r1.Size,
Saved: torrent.Save(),
})
s.db.SetEpisodeStatus(ep.ID, episode.StatusDownloading)