Skip to content

Commit

Permalink
v1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz89B committed Mar 12, 2023
1 parent a1e9eab commit 947d71a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
35 changes: 32 additions & 3 deletions addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,9 @@ def get_items(data, mode=None, thumb=thumb, poster=poster, banner=banner, clearl
start_time = timestamp // 1000

dt_start = datetime.fromtimestamp(start_time)
try:
if os.name == 'nt':
da_start = dt_start.strftime('%A %#d/%#m %H:%M')
except:
else:
da_start = dt_start.strftime('%A %-d/%-m %H:%M')

if da_start != '00:00':
Expand Down Expand Up @@ -771,6 +771,8 @@ def get_items(data, mode=None, thumb=thumb, poster=poster, banner=banner, clearl
src = card_1x1.get('source')
if src:
poster = unquote(src)
else:
poster = fanart

card_2x3 = images.get('showcard2x3') if images.get('showcard2x3') else images.get('showcase2x3')
if card_2x3:
Expand All @@ -779,6 +781,8 @@ def get_items(data, mode=None, thumb=thumb, poster=poster, banner=banner, clearl
src = card_2x3.get('source')
if src:
poster = unquote(src)
else:
poster = fanart

card_16x9 = images.get('showcard16x9') if images.get('showcard16x9') else images.get('showcase16x9')
if card_16x9:
Expand All @@ -787,12 +791,16 @@ def get_items(data, mode=None, thumb=thumb, poster=poster, banner=banner, clearl
src = card_16x9.get('source')
if src:
poster = unquote(src)
else:
poster = fanart

else:
icons = media.get('icons')
if icons:
poster = icons.get('dark').get('sourceNonEncoded')
plot = typename
else:
poster = fanart

ext = localized(30027)
context_menu = [('{0}'.format(ext), 'RunScript(plugin.video.teliaplay,0,?mode=ext,label={0})'.format(title))]
Expand Down Expand Up @@ -973,6 +981,9 @@ def vod_episodes(season, season_id):
if src:
poster = unquote(src)

else:
poster = fanart

icon = ''
card_16x9 = images.get('showcard16x9')
if card_16x9:
Expand All @@ -981,6 +992,11 @@ def vod_episodes(season, season_id):
src = card_16x9.get('source')
if src:
icon = unquote(src)
else:
poster = fanart

else:
poster = fanart

ext = localized(30027)
context_menu = [('{0}'.format(ext), 'RunScript(plugin.video.cmore,0,?mode=ext,label={0})'.format(label))]
Expand Down Expand Up @@ -1178,6 +1194,11 @@ def now_playing(thumb=thumb, poster=poster, banner=banner, clearlogo=clearlogo,
src = card_16x9.get('source')
if src:
poster = unquote(src)
else:
poster = fanart

else:
poster = fanart

plot = media.get('descriptionLong')
outline = plot
Expand Down Expand Up @@ -1583,13 +1604,21 @@ def live_channel(exlink, extitle):
if src:
poster = unquote(src)

else:
poster = fanart

card_16x9 = images.get('showcard16x9')
if card_16x9:
src = card_16x9.get('sourceNonEncoded')
if not src:
src = card_16x9.get('source')
if src:
icon = unquote(src)
else:
poster = fanart

else:
poster = fanart

ext = localized(30027)
context_menu = [('{0}'.format(ext), 'RunScript(plugin.video.cmore,0,?mode=ext,label={0})'.format(label))]
Expand Down Expand Up @@ -1985,7 +2014,7 @@ def sports_upcoming(genre_id, media_id):
n = datetime.now()
now = int(time.mktime(n.timetuple())) * 1000

timestamp = str(((int(time.time() // 86400)) * 86400) * 1000)
timestamp = int(((int(time.time() // 86400)) * 86400) * 1000)

url = 'https://graphql-cmore.t6a.net/'

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.1.6" provider-name="mariusz89b">
<addon id="plugin.video.cmore" name="C More" version="1.1.7" 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.1.6 (2022-09-11)
<news>v1.1.7 (2023-03-12)
- Bug fixes.

v1.1.6 (2022-09-11)
- Revised starttime information for events.
- Fixed start for live events.

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.7 (2023-03-12)
- Bug fixes.

v1.1.6 (2022-09-11)
- Revised starttime information for events.
- Fixed start for live events.
Expand Down

0 comments on commit 947d71a

Please sign in to comment.