Merge branch 'database_changes' of https://github.com/MediaBrowser/Emby.Kodi into database_changes
This commit is contained in:
commit
702eec810a
1 changed files with 16 additions and 12 deletions
|
@ -120,9 +120,13 @@ class API():
|
|||
}
|
||||
|
||||
def getChecksum(self, item):
|
||||
#TODO --> use the etags or serverside checksum for this
|
||||
# for now we just add some fields to a string
|
||||
# use the etags or serverside checksum for this if available
|
||||
# else just add some fields to a string
|
||||
checksum = ""
|
||||
|
||||
if item.get("Etag") != None:
|
||||
checksum = item.get("Etag")
|
||||
else:
|
||||
userData = item.get("UserData")
|
||||
if(userData != None):
|
||||
checksum += str(userData.get("Played"))
|
||||
|
|
Loading…
Reference in a new issue