Skip to content

Commit

Permalink
suggestion by enen92 (Kodi Team)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingPF committed May 30, 2020
1 parent 6c04e4b commit 7f20862
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions resources/lib/channelui.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""

# pylint: disable=import-error
import os
import xbmcgui
import xbmcplugin

Expand Down Expand Up @@ -56,8 +57,12 @@ def add(self, altname=None):
self.channel, self.count, )
list_item = xbmcgui.ListItem(
label=resultingname if altname is None else altname)
icon = 'special://home/addons/' + self.plugin.addon_id + \
'/resources/icons/' + self.channel.lower() + '-m.png'
icon = os.path.join(
self.plugin.path,
'resources',
'icons',
self.channel.lower() + '-m.png'
)
list_item.setArt({
'thumb': icon,
'icon': icon
Expand Down

0 comments on commit 7f20862

Please sign in to comment.