mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-12 21:26:10 +00:00
throw doanload error
This commit is contained in:
parent
3003ecbdca
commit
f1aaed636d
1 changed files with 1 additions and 11 deletions
|
@ -110,17 +110,7 @@ class Read_EmbyServer():
|
||||||
|
|
||||||
def getItem(self, itemid):
|
def getItem(self, itemid):
|
||||||
# This will return the full item
|
# This will return the full item
|
||||||
item = {}
|
item = self.doUtils.downloadUrl("{server}/emby/Users/{UserId}/Items/%s?format=json" % itemid)
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
return item
|
return item
|
||||||
|
|
||||||
def getItems(self, item_list):
|
def getItems(self, item_list):
|
||||||
|
|
Loading…
Reference in a new issue