Skip to content

Commit

Permalink
fix item title for sky events, fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
hubsif committed Aug 25, 2017
1 parent 987ef74 commit 83a1c16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.telekomsport" name="Telekom Sport" version="1.0.1" provider-name="hubsif">
<addon id="plugin.video.telekomsport" name="Telekom Sport" version="1.0.2" provider-name="hubsif">
<requires>
<import addon="xbmc.python" version="2.5.0"/>
</requires>
Expand All @@ -18,6 +18,8 @@
<fanart>fanart.jpg</fanart>
</assets>
<news>
v1.0.2 (2017-08-25)
- fix item title for sky events
v1.0.1 (2017-08-23)
- fix bug with untitled live games
- omit creating empty date listitems
Expand Down
2 changes: 1 addition & 1 deletion default.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def geteventLane():
if event['metadata']['title']:
title = event['metadata']['title']
else:
if event['type'] == 'teamEvent' and 'details' in event['metadata'] and 'home' in event['metadata']['details']:
if event['type'] in ['teamEvent', 'skyTeamEvent'] and 'details' in event['metadata'] and 'home' in event['metadata']['details']:
title = event['metadata']['details']['home']['name_full'] + ' - ' + event['metadata']['details']['away']['name_full']
elif event['metadata']['description_bold']:
title = event['metadata']['description_bold']
Expand Down

0 comments on commit 83a1c16

Please sign in to comment.