Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz89B committed Jul 9, 2022
1 parent abf9982 commit b76ca55
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
12 changes: 8 additions & 4 deletions addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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]), '')
Expand Down
7 changes: 5 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.cmore" name="C More" version="1.0.9" provider-name="mariusz89b">
<addon id="plugin.video.cmore" name="C More" version="1.1.0" provider-name="mariusz89b">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.inputstreamhelper" version="0.2.4"/>
Expand All @@ -24,7 +24,10 @@
<platform>all</platform>
<license>GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 and MIT LICENSE.</license>
<source>https://github.com/Mariusz89B/plugin.video.cmore</source>
<news>v1.0.9 (2022-07-08)
<news>v1.1.0 (2022-07-09)
- Bug fixes.

v1.0.9 (2022-07-08)
- Hotfix.

v1.0.8 (2022-07-08)
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v1.1.0 (2022-07-09)
- Bug fixes.

v1.0.9 (2022-07-08)
- Hotfix.

Expand Down

0 comments on commit b76ca55

Please sign in to comment.