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):