Skip to content

Commit 7f20862

Browse files
committed
suggestion by enen92 (Kodi Team)
1 parent 6c04e4b commit 7f20862

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

resources/lib/channelui.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"""
88

99
# pylint: disable=import-error
10+
import os
1011
import xbmcgui
1112
import xbmcplugin
1213

@@ -56,8 +57,12 @@ def add(self, altname=None):
5657
self.channel, self.count, )
5758
list_item = xbmcgui.ListItem(
5859
label=resultingname if altname is None else altname)
59-
icon = 'special://home/addons/' + self.plugin.addon_id + \
60-
'/resources/icons/' + self.channel.lower() + '-m.png'
60+
icon = os.path.join(
61+
self.plugin.path,
62+
'resources',
63+
'icons',
64+
self.channel.lower() + '-m.png'
65+
)
6166
list_item.setArt({
6267
'thumb': icon,
6368
'icon': icon

0 commit comments

Comments
 (0)