thumbnails: try FFmpeg for images too

This commit is contained in:
ed
2022-04-11 10:38:57 +02:00
parent f096f3ef81
commit fd9d0e433d
6 changed files with 67 additions and 38 deletions

View File

@@ -70,8 +70,11 @@ class HttpSrv(object):
self.cb_ts = 0
self.cb_v = 0
x = self.broker.put(True, "thumbsrv.getcfg")
self.th_cfg = x.get()
try:
x = self.broker.put(True, "thumbsrv.getcfg")
self.th_cfg = x.get()
except:
pass
env = jinja2.Environment()
env.loader = jinja2.FileSystemLoader(os.path.join(E.mod, "web"))