diff --git a/files/routes/admin.py b/files/routes/admin.py index 8af739267..fe7f43758 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1864,6 +1864,9 @@ def delete_media_post(v): path = url.split(SITE)[1] + if path.startswith('/1'): + path = '/videos' + path + if not os.path.isfile(path): return render_template("admin/delete_media.html", v=v, url=url, error="File not found on the server!")