Merge branch 'database_changes' of https://github.com/MediaBrowser/Emby.Kodi into database_changes

This commit is contained in:
Marcel van der Veldt 2015-05-02 16:50:04 +02:00
commit 702eec810a

View file

@ -120,9 +120,13 @@ class API():
} }
def getChecksum(self, item): def getChecksum(self, item):
#TODO --> use the etags or serverside checksum for this # use the etags or serverside checksum for this if available
# for now we just add some fields to a string # else just add some fields to a string
checksum = "" checksum = ""
if item.get("Etag") != None:
checksum = item.get("Etag")
else:
userData = item.get("UserData") userData = item.get("UserData")
if(userData != None): if(userData != None):
checksum += str(userData.get("Played")) checksum += str(userData.get("Played"))