Changed to the old output format for plugins/google.py
This commit is contained in:
parent
91916f0286
commit
8e5e77b521
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue