hide recordings page if record is not enabled, show error if no recordings available.

This commit is contained in:
Jason Hunter
2021-06-05 20:40:52 -04:00
committed by Blake Blackshear
parent 0bb998c465
commit 68dfaaf767
4 changed files with 37 additions and 17 deletions

View File

@@ -456,7 +456,7 @@ def recordings(camera_name):
files = glob.glob(f"{RECORD_DIR}/*/*/*/{camera_name}")
if len(files) == 0:
return "No recordings found.", 404
return jsonify([])
files.sort()