Skip to content

Commit

Permalink
added play count
Browse files Browse the repository at this point in the history
  • Loading branch information
im85288 committed Nov 3, 2015
1 parent 577328f commit c75e4c4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Skinners:
- 3013 - Cancel Button
- 3015 - Season Number
- 3016 - Episode Number
- 3018 - Play Count
- script-nextup-notification-StillWatchingInfo.xml
- 4000 - Label
Expand All @@ -44,4 +45,5 @@ Skinners:
- 4011 - Video Resolution
- 4012 - Continue Watching Button
- 4013 - Cancel Button
- 4014 - TV Show ClearArt
- 4014 - TV Show ClearArt
- 4018 - Play Count
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.nextup.notification" name="Nextup Service Notification" provider-name="im85288" version="1.0.13">
<addon id="service.nextup.notification" name="Nextup Service Notification" provider-name="im85288" version="1.0.14">
<requires>
<import addon="xbmc.addon" version="12.0.0"/>
<import addon="xbmc.python" version="2.1.0"/>
Expand Down
8 changes: 8 additions & 0 deletions resources/lib/NextUpInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def onInit(self):
fanartimage = self.item['art'].get('tvshow.fanart', '')
overview = self.item['plot']
name = self.item['title']
playcount = self.item['playcount']

season = self.item['season']
episodeNum = self.item['episode']
Expand Down Expand Up @@ -105,6 +106,13 @@ def onInit(self):
except:
pass

try:
playcountControl = self.getControl(3018)
if playcountControl != None:
playcountControl.setLabel(str(playcount))
except:
pass

def setItem(self, item):
self.item = item

Expand Down
8 changes: 8 additions & 0 deletions resources/lib/StillWatchingInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def onInit(self):
season = self.item['season']
episodeNum = self.item['episode']
title = self.item['title']
playcount = self.item['playcount']
# set the dialog data
self.getControl(4000).setLabel(name)
self.getControl(4006).setText(overview)
Expand Down Expand Up @@ -104,6 +105,13 @@ def onInit(self):
except:
pass

try:
playcountControl = self.getControl(4018)
if playcountControl != None:
playcountControl.setLabel(str(playcount))
except:
pass

def setItem(self, item):
self.item = item

Expand Down

0 comments on commit c75e4c4

Please sign in to comment.