From f1aaed636d6b5276ff9274c6926f029426d8292d Mon Sep 17 00:00:00 2001 From: sfaulds Date: Wed, 25 Jan 2017 10:14:48 +1100 Subject: [PATCH] throw doanload error --- resources/lib/read_embyserver.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/resources/lib/read_embyserver.py b/resources/lib/read_embyserver.py index 9b9105f9..f030311b 100644 --- a/resources/lib/read_embyserver.py +++ b/resources/lib/read_embyserver.py @@ -110,17 +110,7 @@ class Read_EmbyServer(): def getItem(self, itemid): # This will return the full item - item = {} - - try: - result = self.doUtils.downloadUrl("{server}/emby/Users/{UserId}/Items/%s?format=json" % itemid) - except Exception as error: - log.info("Error getting item from server: " + str(error)) - result = None - - if result is not None: - item = result - + item = self.doUtils.downloadUrl("{server}/emby/Users/{UserId}/Items/%s?format=json" % itemid) return item def getItems(self, item_list):