Skip to content

Commit

Permalink
fix premiered property for episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ronie committed Feb 15, 2013
1 parent fd6eb95 commit 9b3b71a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 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" standalone="yes"?>
<addon id="service.skin.widgets" name="Skin Widgets" version="0.0.22" provider-name="Martijn">
<addon id="service.skin.widgets" name="Skin Widgets" version="0.0.23" provider-name="Martijn">
<requires>
<import addon="xbmc.addon" version="12.0.0"/>
<import addon="xbmc.json" version="6.0.0"/>
Expand Down
5 changes: 4 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v0.0.23
- Fix premiered property for episodes

v0.0.22
- Fix keyerror

Expand Down Expand Up @@ -70,4 +73,4 @@ v0.0.2
- Add option for randomitems to use the timer or on database update

v0.0.1
- Initial version that bring Watchlist and RandomItems in one service script
- Initial version that bring Watchlist and RandomItems in one service script
6 changes: 3 additions & 3 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def _fetch_tvshows_recommended(self, request):
self.WINDOW.setProperty("%s.%d.TVshowTitle" % (request, count), item2['showtitle'])
self.WINDOW.setProperty("%s.%d.Rating" % (request, count), rating)
self.WINDOW.setProperty("%s.%d.Runtime" % (request, count), str(int((item2['runtime'] / 60) + 0.5)))
self.WINDOW.setProperty("%s.%d.Premiered " % (request, count), item2['firstaired'])
self.WINDOW.setProperty("%s.%d.Premiered" % (request, count), item2['firstaired'])
self.WINDOW.setProperty("%s.%d.Art(thumb)" % (request, count), art2.get('thumb',''))
self.WINDOW.setProperty("%s.%d.Art(tvshow.fanart)" % (request, count), art2.get('tvshow.fanart',''))
self.WINDOW.setProperty("%s.%d.Art(tvshow.poster)" % (request, count), art2.get('tvshow.poster',''))
Expand Down Expand Up @@ -348,7 +348,7 @@ def _fetch_tvshows(self, request):
self.WINDOW.setProperty("%s.%d.TVshowTitle" % (request, count), item['showtitle'])
self.WINDOW.setProperty("%s.%d.Rating" % (request, count), rating)
self.WINDOW.setProperty("%s.%d.Runtime" % (request, count), str(int((item['runtime'] / 60) + 0.5)))
self.WINDOW.setProperty("%s.%d.Premiered " % (request, count), item['firstaired'])
self.WINDOW.setProperty("%s.%d.Premiered" % (request, count), item['firstaired'])
self.WINDOW.setProperty("%s.%d.Art(thumb)" % (request, count), art.get('thumb',''))
self.WINDOW.setProperty("%s.%d.Art(tvshow.fanart)" % (request, count), art.get('tvshow.fanart',''))
self.WINDOW.setProperty("%s.%d.Art(tvshow.poster)" % (request, count), art.get('tvshow.poster',''))
Expand Down Expand Up @@ -727,4 +727,4 @@ def onPlayBackStopped(self):
del Widgets_Monitor
del Widgets_Player
del Main
log('script version %s stopped' % __addonversion__)
log('script version %s stopped' % __addonversion__)

0 comments on commit 9b3b71a

Please sign in to comment.