summaryrefslogtreecommitdiff
path: root/engines.cfg_sample
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-01-05 05:49:39 -0800
committerAdam Tauber <asciimoo@gmail.com>2014-01-05 05:49:39 -0800
commit5c9f6d51746796ef63cd08d27c31e931272e083f (patch)
tree1ff55038c8df267d8a3a1d4f33fbd4101546bf5d /engines.cfg_sample
parent556b9dd2b0a17528a1c6f2f581e7a0173bc7d4cf (diff)
parent3dc3fc77709d6f56cd42f748ae356e2915fa2286 (diff)
Merge pull request #16 from dalf/master
bug fixes
Diffstat (limited to 'engines.cfg_sample')
-rw-r--r--engines.cfg_sample16
1 files changed, 9 insertions, 7 deletions
diff --git a/engines.cfg_sample b/engines.cfg_sample
index d76d31214..05593cea4 100644
--- a/engines.cfg_sample
+++ b/engines.cfg_sample
@@ -5,7 +5,7 @@ number_of_results = 1
[bing]
engine = bing
-language = en-us
+locale = en-US
[cc]
engine=currency_convert
@@ -20,6 +20,7 @@ engine = duckduckgo_definitions
[duckduckgo]
engine = duckduckgo
+locale = en-us
[flickr]
engine = flickr
@@ -63,17 +64,17 @@ categories = social media
[urbandictionary]
engine = xpath
search_url = http://www.urbandictionary.com/define.php?term={query}
-url_xpath = //div[@id="entries"]//div[@class="word"]//a
-title_xpath = //div[@id="entries"]//div[@class="word"]//span//text()
-content_xpath = //div[@id="entries"]//div[@class="text"]//div[@class="definition"]//text()
+url_xpath = //div[@id="entries"]//div[@class="word"]/a/@href
+title_xpath = //div[@id="entries"]//div[@class="word"]/span
+content_xpath = //div[@id="entries"]//div[@class="text"]/div[@class="definition"]
[yahoo]
engine = xpath
search_url = http://search.yahoo.com/search?p={query}
results_xpath = //div[@class="res"]
-url_xpath = .//span[@class="url"]//text()
-content_xpath = .//div[@class="abstr"]//text()
-title_xpath = .//h3/a//text()
+url_xpath = .//h3/a/@href
+title_xpath = .//h3/a
+content_xpath = .//div[@class="abstr"]
suggestion_xpath = //div[@id="satat"]//a
[youtube]
@@ -82,5 +83,6 @@ categories = videos
[dailymotion]
engine = dailymotion
+locale = en_US
categories = videos