Merge pull request #495 from kennedyshead/dev

Fix for KeyError in kodi.py
pull/493/head^2
Paulus Schoutsen 2015-10-08 06:59:26 -07:00
commit 05cec772d0
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class KodiDevice(MediaPlayerDevice):
def media_content_id(self):
""" Content ID of current playing media. """
if self._item is not None:
return self._item['uniqueid']
return self._item.get('uniqueid', None)
@property
def media_content_type(self):