def add_item(url, listitem):
    """Return True, when item was added successfully, otherwise False."""
    ret = xbmcplugin.addDirectoryItem(addon.get_handle(), url, listitem)
    return ret
def end(cache_to_disk=False):
    xbmcplugin.endOfDirectory(addon.get_handle(), cacheToDisc=cache_to_disk)