This commit is contained in:
julien 2025-06-26 12:28:34 +02:00
parent 931cc04ba9
commit 8d2d7d4791

View File

@ -276,7 +276,7 @@ func StartDownload(job *DownloadJob, downloadURL string, client *debridlink.Clie
part.Close()
os.Remove(tmpPath)
}
UpdateJobProgress(job.ID, 100, db)
ext := strings.ToLower(filepath.Ext(finalPath))
videoExts := map[string]bool{".mkv": true, ".avi": true, ".mp4": true}
@ -299,7 +299,7 @@ func StartDownload(job *DownloadJob, downloadURL string, client *debridlink.Clie
}
}
UpdateJobProgress(job.ID, 100, db)
UpdateJobStatus(job.ID, "done", db)
log.Printf("[OK] Fichier téléchargé : %s\n", finalPath)
}