fixed the plugin path for playback

This commit is contained in:
Marcel van der Veldt 2015-05-02 02:26:06 +02:00
parent cf2c5ef701
commit b4dd9f58bd
5 changed files with 119 additions and 582 deletions

View file

@ -118,7 +118,24 @@ class API():
'width' : width,
'aspectratio' : str(aspectfloat)
}
def getChecksum(self, item):
#TODO --> use the etags or serverside checksum for this
# for now we just add some fields to a string
checksum = ""
userData = item.get("UserData")
if(userData != None):
checksum += str(userData.get("Played"))
checksum += str(userData.get("IsFavorite"))
if userData.get('UnplayedItemCount') != None:
checksum += str(userData.get("UnplayedItemCount"))
if userData.get('LastPlayedDate') != None:
checksum += str(userData.get("LastPlayedDate"))
if userData.get('PlaybackPositionTicks') != None:
checksum += str(userData.get("PlaybackPositionTicks"))
return checksum
def getUserData(self, item):
userData = item.get("UserData")
resumeTime = 0