From 791809b9a3255f105fad8b6eec9627e8671dbd00 Mon Sep 17 00:00:00 2001 From: Anton Avramov Date: Sat, 27 Nov 2021 14:08:21 -0500 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=20=D0=B7=D0=B0=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=20https://github.com?= =?UTF-8?q?/ByJohnie/plugin.video.mtelnow/issues/14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addon.xml | 2 +- default.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index 55c6336..2ec75de 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/default.py b/default.py index f3be99a..39078d3 100644 --- a/default.py +++ b/default.py @@ -49,7 +49,7 @@ def build_url(query): login_params = {'devId': device_id, 'user': username, 'pwd': password, 'rqT': 'true'} #, 'refr': 'true'} responce = request('Login', login_params) - if 'error_code' in responce and responce['error_code'] == 'errClDevNotFound': + if 'error_code' in responce and responce['error_code'] in ['errClDevNotFound', 'errHoushNotEnabled']: # Ако устройството не е регистрирано, го регистрираме login_params = {'devId': '', 'user': username, 'pwd': password, 'rqT': 'true'} responce = request('Login', login_params)