correct videopath to delete

This commit is contained in:
lukas 2021-09-05 15:27:14 +02:00
parent 2a098527bd
commit 98c5211020

View File

@ -457,7 +457,8 @@ func addToVideoHandlers() {
return database.ManualSuccessResponse(err)
}
assembledPath := database.SettingsVideoPrefix + "/" + vidpath
sett, videoprefix, _ := database.GetSettings()
assembledPath := videoprefix + sett.VideoPath + vidpath
err = os.Remove(assembledPath)
if err != nil {