Changed to the old output format for plugins/google.py

This commit is contained in:
Luke Rogers 2012-02-22 14:18:33 +13:00
parent 91916f0286
commit 8e5e77b521

View file

@ -45,11 +45,11 @@ def google(inp):
else: else:
content = http.html.fromstring(content).text_content() content = http.html.fromstring(content).text_content()
out = '%s :: %s :: %s' % (result['unescapedUrl'], title, content) out = '%s -- \x02%s\x02: "%s"' % (result['unescapedUrl'], title, content)
out = ' '.join(out.split()) out = ' '.join(out.split())
if len(out) > 250: if len(out) > 300:
out = out[:out.rfind(' ')] + '...' out = out[:out.rfind(' ')] + '...'
return out return out