Currently database.search uses util.escape and util.addParams (with querystring.stringify inside) to encode a request URI. At least on my PC this results into wrong encoding for which discogs always returns zero results. For example, the query Theory & DanJah Wise - Tribulation gets encoded as /database/search?q=Theory%2520%2526%2520DanJah%2520Wise%2520-%2520Tribulation. When I change it to
Currently
database.search
usesutil.escape
andutil.addParams
(withquerystring.stringify
inside) to encode a request URI. At least on my PC this results into wrong encoding for which discogs always returns zero results. For example, the queryTheory & DanJah Wise - Tribulation
gets encoded as/database/search?q=Theory%2520%2526%2520DanJah%2520Wise%2520-%2520Tribulation
. When I change it toit encodes as
/database/search?q=Theory%20%26%20DanJah%20Wise%20-%20Tribulation
and everything works fine (discogs returns a result).