Commit f5870990 authored by Cool Fire's avatar Cool Fire
Browse files

Use unesacped urls

parent 3ada1018
Pipeline #24 passed with stage
in 15 seconds
......@@ -45,7 +45,7 @@ class Search
page = agent.get( "#{ @googleurl }#{ CGI::escape( arguments ) }" )
json = page.body
res = JSON.parse( json )
result = "#{ res[ 'results' ][ 0 ][ 'url' ] } - #{ res[ 'results' ][ 0 ][ 'titleNoFormatting' ] }"
result = "#{ res[ 'results' ][ 0 ][ 'unesacpedUrl' ] } - #{ res[ 'results' ][ 0 ][ 'titleNoFormatting' ] }"
if( result.empty? )
result = "Error: No result."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment