We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c04e4b commit 7f20862Copy full SHA for 7f20862
resources/lib/channelui.py
@@ -7,6 +7,7 @@
7
"""
8
9
# pylint: disable=import-error
10
+import os
11
import xbmcgui
12
import xbmcplugin
13
@@ -56,8 +57,12 @@ def add(self, altname=None):
56
57
self.channel, self.count, )
58
list_item = xbmcgui.ListItem(
59
label=resultingname if altname is None else altname)
- icon = 'special://home/addons/' + self.plugin.addon_id + \
60
- '/resources/icons/' + self.channel.lower() + '-m.png'
+ icon = os.path.join(
61
+ self.plugin.path,
62
+ 'resources',
63
+ 'icons',
64
+ self.channel.lower() + '-m.png'
65
+ )
66
list_item.setArt({
67
'thumb': icon,
68
'icon': icon
0 commit comments