Remove cancel

This commit is contained in:
Carl Pearson
2024-09-20 05:20:29 -06:00
parent 62ed290570
commit 1b229f7417
3 changed files with 1 additions and 17 deletions

View File

@@ -756,18 +756,6 @@ func videoHandler(c echo.Context) error {
})
}
func videoCancelHandler(c echo.Context) error {
id, _ := strconv.Atoi(c.Param("id"))
var video Video
if err := db.First(&video, id).Error; err != nil {
return c.Redirect(http.StatusSeeOther, "/videos")
}
// Cancel the download (this is a simplified version, you might need to implement a more robust cancellation mechanism)
return c.Redirect(http.StatusSeeOther, "/videos")
}
func videoRestartHandler(c echo.Context) error {
id, _ := strconv.Atoi(c.Param("id"))
var orig Original