Пример #1
0
def show_empty(id, props=None):
    directory.add_menu_item(
        title=settings.get_localized_string(30140).format(id),
        art=info,
        props=props,
        isFolder=False,
    )

    return True, id, None
Пример #2
0
def show_error(id, props=None):
    directory.add_menu_item(
        title=settings.get_localized_string(30139).format(id),
        art=utils.get_art("alert"),
        props=props,
        isFolder=False,
    )

    return True, id, None
Пример #3
0
def get_string(_id, kodi=False):
    if kodi:
        return six.text_type(xbmc.getLocalizedString(_id))
    return settings.get_localized_string(_id)