From 00e3cdf015db2a7de7ba0bc4c0e146d804e81df1 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Fri, 18 Mar 2016 10:34:51 +0200 Subject: [PATCH] fixed a bug with numeric remote motioneye passwords --- motioneye/remote.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/motioneye/remote.py b/motioneye/remote.py index 0749282..d2ddb78 100644 --- a/motioneye/remote.py +++ b/motioneye/remote.py @@ -105,14 +105,22 @@ def pretty_camera_url(local_config, camera=True): def _remote_params(local_config): - return ( + params = [ local_config.get('@scheme', local_config.get('scheme')) or 'http', local_config.get('@host', local_config.get('host')), local_config.get('@port', local_config.get('port')), local_config.get('@username', local_config.get('username')), local_config.get('@password', local_config.get('password')), local_config.get('@path', local_config.get('path')) or '', - local_config.get('@remote_camera_id', local_config.get('remote_camera_id'))) + local_config.get('@remote_camera_id', local_config.get('remote_camera_id'))] + + if params[3] is not None: + params[3] = str(params[3]) + + if params[4] is not None: + params[4] = str(params[4]) + + return params def list(local_config, callback): -- 2.39.5