Skip to content

Commit

Permalink
v1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz89B committed Sep 10, 2022
1 parent bf257be commit e7c2538
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
14 changes: 10 additions & 4 deletions addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ def get_items(data, mode=None, thumb=thumb, poster=poster, banner=banner, clearl
ext = localized(30027)
context_menu = [('{0}'.format(ext), 'RunScript(plugin.video.teliaplay,0,?mode=ext,label={0})'.format(title))]

xbmcplugin.addSortMethod(addon_handle, sortMethod=xbmcplugin.SORT_METHOD_TITLE, label2Mask = "%R, %Y, %P")
#xbmcplugin.addSortMethod(addon_handle, sortMethod=xbmcplugin.SORT_METHOD_TITLE, label2Mask = "%R, %Y, %P")

if title not in titles:
count += 1
Expand Down Expand Up @@ -2028,7 +2028,12 @@ def sports(genre_id):
for item in i['items']:
genre = item['media']['genre']
if genre == idx:
items = i['items']
ts = item['startTime']['timestamp'] // 1000
dt_obj = datetime.fromtimestamp(ts)
date = dt_obj.date()
item_date_time = date.strftime('%Y-%m-%d')
if date_time == item_date_time:
items.append(item)

if items:
get_items(items)
Expand All @@ -2045,7 +2050,8 @@ def sports_corner_genre():
beartoken = addon.getSetting('teliaplay_beartoken')
tv_client_boot_id = addon.getSetting('teliaplay_tv_client_boot_id')

timestamp = str(((int(time.time() // 86400)) * 86400) * 1000)
start_str = time.strftime('%m-%d-%Y') + ' 00:00:00'
timestamp = int(time.mktime(time.strptime(start_str, '%m-%d-%Y %H:%M:%S')))

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

Expand Down Expand Up @@ -2289,7 +2295,7 @@ def kids_genre():
elif showcase:
items = showcase.get('items')

else:
elif stores:
items = stores.get('items')

if items:
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.teliaplay" name="Telia Play" version="1.1.6" provider-name="mariusz89b">
<addon id="plugin.video.teliaplay" name="Telia Play" 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.teliaplay</source>
<news>v1.1.6 (2022-08-27)
<news>v1.1.7 (2022-09-10)
- Fixed timestamps.

v1.1.6 (2022-08-27)
- Fixed subscription content.
- Added date to upcoming 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 (2022-09-10)
- Fixed timestamps.

v1.1.6 (2022-08-27)
- Fixed subscription content.
- Added date to upcoming events.
Expand Down

0 comments on commit e7c2538

Please sign in to comment.