mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01:00
Allow png/jpg/jpeg as well as webp
This commit is contained in:
parent
e1b630b6ad
commit
d45790e00f
@ -39,7 +39,10 @@ def get_faces():
|
||||
face_dict[name] = []
|
||||
|
||||
for file in sorted(
|
||||
filter(lambda f: (f.endswith(".webp")), os.listdir(face_dir)),
|
||||
filter(
|
||||
lambda f: (f.lower().endswith((".webp", ".png", ".jpg", ".jpeg"))),
|
||||
os.listdir(face_dir),
|
||||
),
|
||||
key=lambda f: os.path.getctime(os.path.join(face_dir, f)),
|
||||
reverse=True,
|
||||
):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user