This commit is contained in:
Simon Ding
2024-07-14 23:36:37 +08:00
parent a465468b68
commit e8a3648c99
2 changed files with 13 additions and 2 deletions

View File

@@ -56,6 +56,9 @@ func (s *Server) moveCompletedTask(id int) error {
r := s.db.GetHistory(id)
series := s.db.GetSeriesDetails(r.SeriesID)
if series == nil {
return nil
}
st := s.db.GetStorage(series.StorageID)
log.Infof("move task files to target dir: %v", r.TargetDir)
if st.Implementation == storage1.ImplementationWebdav {