up
This commit is contained in:
parent
931cc04ba9
commit
8d2d7d4791
@ -276,7 +276,7 @@ func StartDownload(job *DownloadJob, downloadURL string, client *debridlink.Clie
|
|||||||
part.Close()
|
part.Close()
|
||||||
os.Remove(tmpPath)
|
os.Remove(tmpPath)
|
||||||
}
|
}
|
||||||
UpdateJobProgress(job.ID, 100, db)
|
|
||||||
ext := strings.ToLower(filepath.Ext(finalPath))
|
ext := strings.ToLower(filepath.Ext(finalPath))
|
||||||
videoExts := map[string]bool{".mkv": true, ".avi": true, ".mp4": true}
|
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)
|
UpdateJobStatus(job.ID, "done", db)
|
||||||
log.Printf("[OK] Fichier téléchargé : %s\n", finalPath)
|
log.Printf("[OK] Fichier téléchargé : %s\n", finalPath)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user