2016-12-20, 00:21
(2016-12-18, 19:42)marcelveldt Wrote:This is how he build the list. Does it explain why the 'date_time' doesn't show also in the widget items tags?(2016-12-15, 01:29)burekas Wrote: c. Regarding the option of "Use as widget". I use it in one of my addons, but there is mismatch with the title.Not a skin issue, that addon is not following Kodi's for the listings.
While in the addon the title is written like this (Date + Title):
PHP Code:
menu_items = []
queries = {'mode': MODES.SEASONS, 'trakt_id': show['ids']['trakt'], 'title': show['title'], 'year': show['year'], 'tvdb_id': show['ids']['tvdb']}
menu_items.append((i18n('browse_seasons'), 'Container.Update(%s)' % (kodi.get_plugin_url(queries))),)
liz, liz_url = make_episode_item(show, episode['episode'], show_subs=False, menu_items=menu_items, screenshots=True)
label = liz.getLabel()
label = '[[COLOR deeppink]%s[/COLOR]] %s - %s' % (date_time, show['title'], label)
liz.setLabel(label)
xbmcplugin.addDirectoryItem(int(sys.argv[1]), liz_url, liz, isFolder=False)