def listSearch(self, text):
"""Create list of found movies. [interal]"""
if text is None:
return True
if not self.url:
return text
q = urllib.quote_plus(text)
if '%s' in self.url:
# shortcut, just URL with simple "%s" for quoted query
url = self.url % q
else:
# full format URL with "%(quoted)s" for quoted query
# and "%(text)s" for unquoted query
url = self.url % (dict(q=q, quoted=q, text=text))
if self.listItemsFun:
xbmc.log('SEARCH: searching "%s"' % url)
self.listItemsFun(url)
return url
评论列表
文章目录