From 82302cfc4e5ad029168eb2debfc2932d54088abd Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 27 Oct 2016 05:14:06 -0500 Subject: [PATCH] Fix compare_checksum returning bool Instead return list so it doesn't break anything. --- resources/lib/objects/_common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/objects/_common.py b/resources/lib/objects/_common.py index de4767c8..1c91484e 100644 --- a/resources/lib/objects/_common.py +++ b/resources/lib/objects/_common.py @@ -145,6 +145,9 @@ class Items(object): update_list = self._compare_checksum(items, compare_to) log.info("Update for %s: %s", view_name, update_list) + if self.should_stop(): + return False + emby_items = self.emby.getFullItems(update_list) total = len(update_list) @@ -167,7 +170,7 @@ class Items(object): for item in items: if self.should_stop(): - return False + break item_id = item['Id']