![]() |
2010-05-20
, 22:37
|
Posts: 252 |
Thanked: 252 times |
Joined on Nov 2009
|
#192
|
Since apparently the code to do this is already written (The google plugin uses this method) I would like to ask if someone can publish a tutorial to write a plugin of your own to search the site you would like.
Even better would be if a generic plugin could be written, so you can add sites form within the program.
(Like this: Tap "Add new site", Give it a name how it should appear in the list, add te generic link, and with some special string, mark where the barcode should be inserted in that link.)[/B]
![]() |
2010-05-20
, 22:43
|
Posts: 252 |
Thanked: 252 times |
Joined on Nov 2009
|
#193
|
No, am i correct if i assume that if I altered the following, got it compiled, and installed on my n900, it would give me a button that reads "Search Amazon", and would open this link: http://www.amazon.co.uk/s/ref=nb_sb_...=4905524586787 if i scanned the following barcode: 4905524586787?
![]() |
2010-05-20
, 23:09
|
Posts: 46 |
Thanked: 34 times |
Joined on May 2010
|
#194
|
Oops, sorry. I didn't see your second post before I wrote mine.
You are correct, it would open that link if you compiled it like that (and packaged it or installed it). But making a plugin for each search provider is probably not a good choice. I'll try to make one plugin take care of all search providers, with an easy option to create custom searches as well.
Would it be sufficient if you could click a button and then select the search provider of choice?
![]() |
2010-05-21
, 12:45
|
Posts: 252 |
Thanked: 252 times |
Joined on Nov 2009
|
#195
|
/home/user/.config/mbarcode/webrequest-plugin.conf
![]() |
2010-05-21
, 12:52
|
Posts: 79 |
Thanked: 21 times |
Joined on Sep 2007
|
#196
|
![]() |
2010-05-21
, 12:56
|
Posts: 252 |
Thanked: 252 times |
Joined on Nov 2009
|
#197
|
![]() |
2010-05-21
, 16:45
|
Posts: 18 |
Thanked: 5 times |
Joined on Jul 2009
@ Boston Harbor
|
#198
|
![]() |
2010-05-21
, 17:06
|
Posts: 46 |
Thanked: 34 times |
Joined on May 2010
|
#199
|
I believe I've cleared out all bugs for now, but give me a heads up if something is wrong. Hope you find the plugin a bit more useful nowHave fun with it!
![]() |
2010-05-21
, 19:18
|
Posts: 252 |
Thanked: 252 times |
Joined on Nov 2009
|
#200
|
Well, this was fast! Thanks for implementing exactly what I was looking for!
One small downside however: The first scan I did, everything worked fine. The barcode info was added to the search link for the different providers, and I could click one, and it would work.
However, when I do a new scan, the code from the first one still remains in the search link, so my results always show the product from the first scan. Closing, and then reopening mBarcode does not fix this.
rm /home/user/.config/mbarcode/webrequest-plugin.conf
The Following User Says Thank You to dragly For This Useful Post: | ||
First of all, I have no idea what i'm doing, so please don't be too harsh if I'm totally wrong, or am trying things that I shouldn't be trying.
So, I had a look at the source of mbarcode-plugin-webrequest
In there, there's a file called "wrsink.cpp", that has this code (i just opened it in textedit on OSX)