Skip to content

Commit

Permalink
Changed name of plugin to check for and minor tweak to resumetime code
Browse files Browse the repository at this point in the history
  • Loading branch information
LehighBri committed Oct 3, 2012
1 parent bcea512 commit 13e0e43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions default.py
Expand Up @@ -70,10 +70,10 @@ def TOPLEVELCATEGORIES():
print "Successfully able to connect to the SageTV server @ " + __settings__.getSetting("sage_ip") + ':' + __settings__.getSetting("sage_port")
sagexVersion = ""
for plugin in plugins:
if(plugin.get("PluginIdentifier") == "sagex-api-services"):
if(plugin.get("PluginIdentifier") == "sagex-api"):
sagexVersion = plugin.get("PluginVersion")

print "TOPLEVELCATEGORIES STARTED; sagex-api-services version=" + sagexVersion
print "TOPLEVELCATEGORIES STARTED; sagex-api version=" + sagexVersion
if(sagexVersion == ""):
xbmcgui.Dialog().ok(__language__(21004),__language__(21005) + " " + MIN_VERSION_SAGEX_REQUIRED, __language__(21006),__language__(21007))
return
Expand Down Expand Up @@ -450,10 +450,10 @@ def addMediafileLink(name,url,plot,iconimage,genre,originalairingdate,airingdate
if(iswatched):
liz.setInfo( type="Video", infoLabels={ "Title": name, "Plot": plot, "Genre": genre, "date": airingdate, "premiered": originalairingdate, "aired": originalairingdate, "TVShowTitle": showtitle, "season": seasonnum, "episode": episodenum, "studio": studio, "overlay": 7, "watched": True } )
else:
liz.setProperty("resumetime",str(resumetime))
liz.setProperty("totaltime",str(totaltime))
liz.setInfo( type="Video", infoLabels={ "Title": name, "Plot": plot, "Genre": genre, "date": airingdate, "premiered": originalairingdate, "aired": originalairingdate, "TVShowTitle": showtitle, "season": seasonnum, "episode": episodenum, "studio": studio, "overlay": 6, "watched": False } )

liz.setProperty("resumetime",str(resumetime))
liz.setProperty("totaltime",str(totaltime))

liz.setIconImage(iconimage)
liz.setThumbnailImage(iconimage)
Expand Down

0 comments on commit 13e0e43

Please sign in to comment.