forked from Github/frigate
hide recordings page if record is not enabled, show error if no recordings available.
This commit is contained in:
committed by
Blake Blackshear
parent
0bb998c465
commit
68dfaaf767
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user