Version 0.7.13

This commit is contained in:
Paco8 committed 2023-09-27 15:15:47 +02:00
1 parent 95f540c0fe
commit 428388825c
24 files changed
+287 -24

No files matched your search

+6 -2
View File
@@ -7,7 +7,7 @@ import xbmc
import xbmcgui
import xbmcplugin
from .log import LOG
from .addon import addon
from .addon import addon,translatePath
def handle():
try:
@@ -34,12 +34,16 @@ def open_folder(name, content_type = 'videos'):
def close_folder(updateListing=False, cacheToDisc=True):
xbmcplugin.endOfDirectory(handle(), updateListing=updateListing, cacheToDisc=cacheToDisc)
def add_menu_option(title, url, context_menu = None, info = None, art = None):
def add_menu_option(title, url, context_menu = None, info = None, art = None, icon=None):
list_item = xbmcgui.ListItem(label=title)
if not info:
info = {'title': title, 'plot': '[B][/B]'}
if not art:
art = {'icon': addon.getAddonInfo('icon'), 'poster': addon.getAddonInfo('icon')}
if icon:
path = addon.getAddonInfo('path')
icon_path = translatePath(path + '/resources/icons/' + icon)
art = {'icon': icon_path, 'poster': icon_path}
list_item.setInfo('video', info)
list_item.setArt(art)
if context_menu: