This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to add search engine to Ktorrent

Tags: None
(comma "," separated)
allanmills
Registered Member
Posts
6
Karma
0
OS
Hello. I am trying to determine how to add a new search engine to the Ktorrent Search plugin, but when entering the website URL, it displays a message that OpenSearch doesn't support HTML and a URL with search terms should be entered. I'm not sure exactly how to interpret that and get it working. I'd love to implement this feature but am quite stuck at this point. Any helpful suggestions would be welcome. Thank you.
retrokicken
Registered Member
Posts
1
Karma
0
OS
I will use archive.org as an example. Go to the target search engine you wish to use and do a search with it. in a browser I searched on the term "test" .
I then look at the URL. https://archive.org/search?query=test . So when you add another search engine you will need to figure out where to put the {searchTerms} string . Ktorrent will inject your search term into that string.


URL From Browser: https://archive.org/search?query=test .
Modified URL: https://archive.org/search?query={searchTerms}

Some sites use categories, you will need to look at the URL to determine how they express that. In this example I always want the search to use just plain text.

URL From Browser: https://archive.org/search?query=test&sin=TXT
Modified URL: https://archive.org/search?query={searchTerms}&sin=TXT.

Note when adding a URL, the first field is just like a the domain name

example:
You would enter archive.org for first prompt and the second prompt is where you would place the modified search URL https://archive.org/search?query={searchTerms}.

Hope that helps.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]