Allow deletion of *.mp4 timelapse files
That one was missing in a00faf2.
Fixes #1320
This commit is contained in:
parent
8ce1eafd5d
commit
2833372603
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ def downloadTimelapse(filename):
|
|||
@api.route("/timelapse/<filename>", methods=["DELETE"])
|
||||
@restricted_access
|
||||
def deleteTimelapse(filename):
|
||||
if util.is_allowed_file(filename, ["mpg"]):
|
||||
if util.is_allowed_file(filename, ["mpg", "mpeg", "mp4"]):
|
||||
timelapse_folder = settings().getBaseFolder("timelapse")
|
||||
full_path = os.path.realpath(os.path.join(timelapse_folder, filename))
|
||||
if full_path.startswith(timelapse_folder) and os.path.exists(full_path):
|
||||
|
|
|
|||
Loading…
Reference in a new issue