Bug 11728 - add support for output formatting for webrequest plugin
: add support for output formatting for webrequest plugin
Status: NEW
Product: mbarcode
Plugins-General
: unspecified
: N900 Maemo
: Unspecified enhancement (vote)
: ---
Assigned To: unassigned
: general
:
:
:
:
  Show dependency tree
 
Reported: 2010-12-26 20:48 UTC by Michel Rouwenhorst
Modified: 2011-02-15 11:15 UTC (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Michel Rouwenhorst (reporter) 2010-12-26 20:48:49 UTC
SOFTWARE VERSION: 
mbarcode-plugin-webrequest 0.1.15-3

EXACT STEPS LEADING TO PROBLEM: 
When adding or modifying a searchprovider, the only option is to place the
entire barcode that was detected into a URL. I came across a 1D barcode that
was returned with a leading zero, and the website I tried searching it on
(discogs.com) lists it without the leading zero. (since the zero is not
actually printed on the record)
I tried with: Nightwish - End of an era (727361167912) on
http://www.discogs.com/search?q=727361167912&btn=&type=all


I would welcome the possibility to for more output formatting, preferably
seperately configurable for each searchprovider, although looking at the
current code i realise that that will be an elaborate task.
For me, currently just being able to strip leading zero's is enough.
Comment 1 Simon Pickering maemo.org 2011-02-15 11:15:21 UTC
Sorry for the slow response.

Interesting idea. As you say this will take some work. Patches welcome!

Otherwise I'll add it to the ToDo list. I suppose one option would be to add a
RegEx in place of the %s and run the string through the RegEx parser before the
browser is called. I'll have a look at this.

If you need something sooner, you could write a simply Python plugin to do the
string manipulation and open this specific website quire easily.