strix

A simple web UI for motion
git clone https://www.brianlane.com/git/strix
Log | Files | Refs | LICENSE

commit 3a50383548a53f243ed6c5fdc610454ad646a3c7
parent 91e050a8c84cdda5edf4abd902c650ec5036827b
Author: Brian C. Lane <bcl@brianlane.com>
Date:   Fri,  9 Apr 2021 12:14:06 -0700

Fix lack of mime type support for m4v

Diffstat:
Msrc/strix/api.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/strix/api.py b/src/strix/api.py @@ -19,6 +19,10 @@ from datetime import datetime import multiprocessing as mp import os +# Fix mimetypes so that it recognized m4v as video/mp4 +import mimetypes +mimetypes.add_type("video/mp4", ".m4v") + from bottle import route, run, static_file, request, Response from . import logger