mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
revert etag use as the API does not currently return the etag when
getting a collection of items (eg all episodes of a tv show).
This commit is contained in:
parent
ba5211dcb8
commit
bc09e570fd
1 changed files with 13 additions and 13 deletions
|
@ -124,19 +124,19 @@ class API():
|
||||||
# else just add some fields to a string
|
# else just add some fields to a string
|
||||||
checksum = ""
|
checksum = ""
|
||||||
|
|
||||||
if item.get("Etag") != None:
|
#if item.get("Etag") != None:
|
||||||
checksum = item.get("Etag")
|
#checksum = item.get("Etag")
|
||||||
else:
|
#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"))
|
||||||
checksum += str(userData.get("IsFavorite"))
|
checksum += str(userData.get("IsFavorite"))
|
||||||
if userData.get('UnplayedItemCount') != None:
|
if userData.get('UnplayedItemCount') != None:
|
||||||
checksum += str(userData.get("UnplayedItemCount"))
|
checksum += str(userData.get("UnplayedItemCount"))
|
||||||
if userData.get('LastPlayedDate') != None:
|
if userData.get('LastPlayedDate') != None:
|
||||||
checksum += str(userData.get("LastPlayedDate"))
|
checksum += str(userData.get("LastPlayedDate"))
|
||||||
if userData.get('PlaybackPositionTicks') != None:
|
if userData.get('PlaybackPositionTicks') != None:
|
||||||
checksum += str(userData.get("PlaybackPositionTicks"))
|
checksum += str(userData.get("PlaybackPositionTicks"))
|
||||||
|
|
||||||
return checksum
|
return checksum
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue