mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-06 05:27:44 +03: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] = []
|
face_dict[name] = []
|
||||||
|
|
||||||
for file in sorted(
|
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)),
|
key=lambda f: os.path.getctime(os.path.join(face_dir, f)),
|
||||||
reverse=True,
|
reverse=True,
|
||||||
):
|
):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user