def set_resolved_url(self, url, title=None): if self._mode in ['crawl', 'interactive', 'test']: print 'ListItem resolved to %s' % url li = xbmcgui.ListItem(path=url) if title: li.setLabel(title) xbmcplugin.setResolvedUrl(self.handle, True, li) if self._mode in ['interactive', 'crawl', 'test']: return []
def set_resolved_url(self, url): if self._mode in ['crawl', 'interactive', 'test']: print 'ListItem resolved to %s' % url li = xbmcgui.ListItem(path=url) xbmcplugin.setResolvedUrl(self.handle, True, li) # CLI modes expect a list to be returned. if self._mode in ['interactive', 'crawl', 'test']: return []