def _get_contextmenu_items(self, url, name, metadata, media_type): items = MediaContainerList._get_contextmenu_items( self, url, name, metadata, media_type) remove_id = self.bookmark_dict[name] query = self._construct_query(remove_id, 'removeBookmark', metadata, name, media_type) cm_item = constants.runplugin % helper.build_plugin_url(query) items.insert(1, ('Remove bookmark', cm_item)) return items
def _get_contextmenu_items(self, url, name, metadata, media_type): contextmenu_items = [('Show information', 'XBMC.Action(Info)')] find_metadata_query = self._construct_query(url, 'findmetadata', metadata, name) find_metadata_context_item = constants.runplugin % helper.build_plugin_url( find_metadata_query) find_or_fix = ('Find' if self.meta.is_metadata_empty( metadata, media_type) else 'Fix') + ' metadata' contextmenu_items.append((find_or_fix, find_metadata_context_item)) return contextmenu_items
def _get_contextmenu_items(self, url, name): contextmenu_items = [('Show information', 'XBMC.Action(Info)'), ('Queue item', 'XBMC.Action(Queue)')] show_queue_query = self._construct_query('', 'showqueue') show_queue_context_item = constants.runplugin % helper.build_plugin_url(show_queue_query) contextmenu_items.append(('Show queue', show_queue_context_item)) return contextmenu_items