allow download/management of mp4 timelapse too
This commit is contained in:
1 parent
cb687f01f7
commit
a00faf2a33
2 files changed
+3
-2
No files matched your search
@@ -366,7 +366,8 @@ class Server():
|
|||||||
|
|
||||||
server_routes = self._router.urls + [
|
server_routes = self._router.urls + [
|
||||||
# various downloads
|
# various downloads
|
||||||
(r"/downloads/timelapse/([^/]*\.mpg)", util.tornado.LargeResponseHandler, joined_dict(dict(path=self._settings.getBaseFolder("timelapse")),
|
# .mpg and .mp4 timelapses:
|
||||||
|
(r"/downloads/timelapse/([^/]*\.mp[g4])", util.tornado.LargeResponseHandler, joined_dict(dict(path=self._settings.getBaseFolder("timelapse")),
|
||||||
download_handler_kwargs,
|
download_handler_kwargs,
|
||||||
no_hidden_files_validator)),
|
no_hidden_files_validator)),
|
||||||
(r"/downloads/files/local/(.*)", util.tornado.LargeResponseHandler, joined_dict(dict(path=self._settings.getBaseFolder("uploads")),
|
(r"/downloads/files/local/(.*)", util.tornado.LargeResponseHandler, joined_dict(dict(path=self._settings.getBaseFolder("uploads")),
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ def get_finished_timelapses():
|
|||||||
files = []
|
files = []
|
||||||
basedir = settings().getBaseFolder("timelapse")
|
basedir = settings().getBaseFolder("timelapse")
|
||||||
for osFile in os.listdir(basedir):
|
for osFile in os.listdir(basedir):
|
||||||
if not fnmatch.fnmatch(osFile, "*.mpg"):
|
if not fnmatch.fnmatch(osFile, "*.mp[g4]"):
|
||||||
continue
|
continue
|
||||||
statResult = os.stat(os.path.join(basedir, osFile))
|
statResult = os.stat(os.path.join(basedir, osFile))
|
||||||
files.append({
|
files.append({
|
||||||
|
|||||||
Reference in new issue
Block a user