Skip to content

Commit c108c7c

Browse files
committed
Improvements after Kodi-PR-Review
1 parent c862fb7 commit c108c7c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

resources/lib/filmui.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# pylint: disable=mixed-indentation, bad-whitespace, bad-continuation, missing-docstring
1010

1111
# -- Imports ------------------------------------------------
12+
import os
13+
1214
import xbmcgui
1315
import xbmcplugin
1416

@@ -172,7 +174,7 @@ def get_list_item( self, alttitle, film = None ):
172174
info_labels['aired'] = airedstring
173175
info_labels['dateadded'] = airedstring
174176

175-
icon = 'special://home/addons/' + self.plugin.addon_id + '/resources/icons/' + film.channel.lower() + '-m.png'
177+
icon = os.path.join( self.plugin.addon.getAddonInfo( 'path' ), 'resources', 'icons', film.channel.lower() + '-m.png' )
176178

177179
listitem = xbmcgui.ListItem( resultingtitle, path = videourl )
178180
listitem.setInfo( type = 'video', infoLabels = info_labels )

0 commit comments

Comments
 (0)