Fix for errors on missing preview on LG webos TV (#6755)
* fix for missing image preview on LG webos TV * fix to use largeIcon if it start with http
This commit is contained in:
parent
0c14c66fbc
commit
2d5ab520ef
1 changed files with 4 additions and 1 deletions
|
@ -238,7 +238,10 @@ class LgWebOSDevice(MediaPlayerDevice):
|
|||
def media_image_url(self):
|
||||
"""Image url of current playing media."""
|
||||
if self._current_source_id in self._app_list:
|
||||
return self._app_list[self._current_source_id]['largeIcon']
|
||||
icon = self._app_list[self._current_source_id]['largeIcon']
|
||||
if not icon.startswith('http'):
|
||||
icon = self._app_list[self._current_source_id]['icon']
|
||||
return icon
|
||||
return None
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Reference in a new issue