From 6ddbcac42e9b5a934041a09393c60cfb1267ebc4 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 13 Dec 2017 02:39:26 -0600 Subject: [PATCH] Update 2.3.59 --- addon.xml | 7 ++++++- resources/lib/playutils.py | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index 221d3e57..3e1dcc39 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ @@ -17,6 +17,11 @@ + + + Select the video track + [!IsEmpty(ListItem.DBID) + !StringCompare(ListItem.DBID,-1) | !IsEmpty(ListItem.Property(embyid))] + !IsEmpty(Window(10000).Property(emby_context)) + Settings for the Emby Server diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index fb92e20e..a915b18c 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -702,7 +702,9 @@ class PlayUtils(): try: return {'width' : self.item['MediaStreams'][0]['Width'], 'height' : self.item['MediaStreams'][0]['Height']} - except KeyError as error: + except (KeyError, IndexError) as error: + log.debug(error) + log.debug(self.item) return False def getVideoStreamID(self):