From b76ca55b3b8877217937eb4d2edcdc2552534ce2 Mon Sep 17 00:00:00 2001 From: Mariusz89B Date: Sat, 9 Jul 2022 17:34:07 +0200 Subject: [PATCH] v1.1.0 --- addon.py | 12 ++++++++---- addon.xml | 7 +++++-- changelog.txt | 3 +++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/addon.py b/addon.py index 987aace..9a8b4e5 100644 --- a/addon.py +++ b/addon.py @@ -311,8 +311,8 @@ def refresh_timedelta(valid_to): def login_service(reconnect, retry=0): try: dashjs = addon.getSetting('cmore_devush') - valid_to = addon.getSetting('cmore_valid_to') - if dashjs == '' and valid_to == '': + valid_to = addon.getSetting('cmore_validto') + if (dashjs == '' or valid_to == ''): try: msg = localized(30000) xbmcgui.Dialog().ok(localized(30012), str(msg)) @@ -411,8 +411,12 @@ def login_data(reconnect, retry=0): code = '' if not response: - xbmcgui.Dialog().notification(localized(30012), localized(30006)) - return False + if reconnect and retry < 3: + retry += 1 + login_service(reconnect=True, retry=retry) + else: + xbmcgui.Dialog().notification(localized(30012), localized(30006)) + return False j_response = response.json() code = j_response['redirectUri'].replace('https://www.cmore.{cc}/,https://www.cmore.{cc}/?code='.format(cc=cc[country]), '') diff --git a/addon.xml b/addon.xml index 63e8cc1..f7c4185 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -24,7 +24,10 @@ all GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 and MIT LICENSE. https://github.com/Mariusz89B/plugin.video.cmore - v1.0.9 (2022-07-08) + v1.1.0 (2022-07-09) +- Bug fixes. + +v1.0.9 (2022-07-08) - Hotfix. v1.0.8 (2022-07-08) diff --git a/changelog.txt b/changelog.txt index e31ee7f..9fcb9a9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +v1.1.0 (2022-07-09) +- Bug fixes. + v1.0.9 (2022-07-08) - Hotfix.