ipcam_server: update

This commit is contained in:
Evgeny Zinoviev 2022-06-12 02:02:39 +03:00
parent 0dc38ac37f
commit 03b2d0a2ae

View File

@ -330,11 +330,8 @@ async def process_fragments(camera: int,
start_pos=start,
duration=duration)
try:
if fragments and config['motion']['telegram']:
asyncio.ensure_future(motion_notify_tg(camera, filename, fragments))
except KeyError:
pass
if fragments and 'telegram' in config['motion'] and config['motion']['telegram']:
asyncio.ensure_future(motion_notify_tg(camera, filename, fragments))
async def motion_notify_tg(camera: int,