mirror of
https://framagit.org/StCyr/plugin.video.peertube
synced 2025-06-05 22:09:16 +02:00
Fixed a but in main menu where menu entries were not called with the 'isFolder'
attribute set to True
This commit is contained in:
@@ -269,6 +269,7 @@ class PeertubeAddon():
|
||||
:return: None
|
||||
"""
|
||||
|
||||
xbmc.log('PeertubeAddon: Changing currently selected instance to ({0})'.format(instance, xbmc.LOGDEBUG)
|
||||
self.selected_inst = instance
|
||||
|
||||
return None
|
||||
@@ -291,12 +292,12 @@ class PeertubeAddon():
|
||||
# 2nd menu entry
|
||||
list_item = xbmcgui.ListItem(label='Search on selected instance')
|
||||
url = '{0}?action=search_videos&start=0'.format(self.plugin_url)
|
||||
listing.append((url, list_item, False))
|
||||
listing.append((url, list_item, True))
|
||||
|
||||
# 3rd menu entry
|
||||
list_item = xbmcgui.ListItem(label='Select other instance')
|
||||
url = '{0}?action=browse_instances&start=0'.format(self.plugin_url)
|
||||
listing.append((url, list_item, False))
|
||||
listing.append((url, list_item, True))
|
||||
|
||||
# Add our listing to Kodi.
|
||||
xbmcplugin.addDirectoryItems(self.plugin_id, listing, len(listing))
|
||||
|
Reference in New Issue
Block a user