diff options
author | Leo Moll <leo.moll@dtms.de> | 2018-01-22 01:01:34 +0100 |
---|---|---|
committer | Martijn Kaijser <martijn@xbmc.org> | 2018-01-22 16:58:17 +0100 |
commit | a55a6475b943a804fd76b5181b7d82968c2ea096 (patch) | |
tree | c763016250990d9699a589972e5234b54745845a /plugin.video.mediathekview/resources/lib/filmui.py | |
parent | a266c01d2aa6e4e54ccfd37e79170fbb7ebc2a0a (diff) |
[plugin.video.mediathekview] 0.4.2
Diffstat (limited to 'plugin.video.mediathekview/resources/lib/filmui.py')
-rw-r--r-- | plugin.video.mediathekview/resources/lib/filmui.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/plugin.video.mediathekview/resources/lib/filmui.py b/plugin.video.mediathekview/resources/lib/filmui.py index af04798..23eaf98 100644 --- a/plugin.video.mediathekview/resources/lib/filmui.py +++ b/plugin.video.mediathekview/resources/lib/filmui.py @@ -3,7 +3,8 @@ # # -- Imports ------------------------------------------------ -import xbmcplugin, xbmcgui +import xbmcgui +import xbmcplugin from resources.lib.film import Film from resources.lib.settings import Settings @@ -45,7 +46,7 @@ class FilmUI( Film ): infoLabels = { 'title' : resultingtitle + videohds, - 'sorttitle' : resultingtitle, + 'sorttitle' : resultingtitle.lower(), 'tvshowtitle' : self.show, 'plot' : self.description } @@ -63,9 +64,15 @@ class FilmUI( Film ): infoLabels['aired'] = airedstring infoLabels['dateadded'] = airedstring - li = xbmcgui.ListItem( resultingtitle, self.description ) + icon = 'special://home/addons/' + self.plugin.addon_id + '/resources/icons/' + self.channel.lower() + '-m.png' + + li = xbmcgui.ListItem( resultingtitle ) li.setInfo( type = 'video', infoLabels = infoLabels ) li.setProperty( 'IsPlayable', 'true' ) + li.setArt( { + 'thumb': icon, + 'icon': icon + } ) # create context menu contextmenu = [] |