[kupfer: 3/8] Changed query_url so DDG parses correctly (tip from Francesco M.)



commit 9cdfa81ce11220856581bc71a8deae7501f48a10
Author: Isaac Aggrey <isaac aggrey gmail com>
Date:   Wed Jun 8 23:06:09 2011 -0500

    Changed query_url so DDG parses correctly (tip from Francesco M.)

 kupfer/plugin/duckduckgo_search.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/duckduckgo_search.py b/kupfer/plugin/duckduckgo_search.py
index 3b374bf..2cb5ca9 100644
--- a/kupfer/plugin/duckduckgo_search.py
+++ b/kupfer/plugin/duckduckgo_search.py
@@ -6,7 +6,7 @@ __kupfer_name__ = _("DuckDuckGo HTTPS Search")
 __kupfer_sources__ = ()
 __kupfer_actions__ = ("DuckDuckGoSearch",)
 __description__ = _("Search the Web securely with DuckDuckGo")
-__version__ = "0.1"
+__version__ = "1.0"
 __author__ = "Isaac Aggrey <isaac aggrey gmail com>"
 
 import urllib
@@ -20,7 +20,7 @@ class DuckDuckGoSearch (Action):
 
 	def activate(self, leaf):
 		search_url="https://duckduckgo.com/"; 
-		query_url = search_url + "&" + urllib.urlencode({"q" : leaf.object})
+		query_url = search_url + "?" + urllib.urlencode({"q" : leaf.object})
 		utils.show_url(query_url)
 
 	def item_types(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]