From bc09e570fd11c9a7d6bcfb693f22760c54a5921d Mon Sep 17 00:00:00 2001 From: im85288 Date: Sat, 2 May 2015 17:16:33 +0100 Subject: [PATCH] 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). --- resources/lib/API.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/resources/lib/API.py b/resources/lib/API.py index 6f297024..151963b8 100644 --- a/resources/lib/API.py +++ b/resources/lib/API.py @@ -124,19 +124,19 @@ class API(): # 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")) - 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")) + #if item.get("Etag") != None: + #checksum = item.get("Etag") + #else: + 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