Fix media_title empty when title is empty but label is set (#14791)

pull/14809/head
quthla 2018-06-03 15:27:17 +02:00 committed by Adam Mills
parent 919b431a24
commit e35d4beb95
1 changed files with 2 additions and 2 deletions

View File

@ -542,8 +542,8 @@ class KodiDevice(MediaPlayerDevice):
def media_title(self):
"""Title of current playing media."""
# find a string we can use as a title
return self._item.get(
'title', self._item.get('label', self._item.get('file')))
item = self._item
return item.get('title') or item.get('label') or item.get('file')
@property
def media_series_title(self):