예제 #1
0
 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 []
예제 #2
0
 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 []
예제 #3
0
파일: plugin.py 프로젝트: jbeluch/xbmcswift
    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 []
예제 #4
0
파일: plugin.py 프로젝트: jbeluch/xbmcswift
    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 []