ThePickleMan/bBTools — pull request #2 by xnomadbb (2012-09-29 08:57:55+00:00)
Title: Release groups and result list API

Release groups:
The generated description now links to MB's release group page rather than the release page. When torrents from different sources or different editions are uploaded, having a release link in the shared description (the current behavior) is incorrect. Links for viewing the release on MB (to see details before choosing) are still release links.

Result lists:
This lets the JSONP/XHR API return a list of results, similar to what happens on search.php, rather than just generating a description for the first result. Also added a way to get the description from a release id, so the client can retrieve this list, let the user pick a release, and request a description for that release id. Old requests will not break, this is safe to push without changing the upload page.

I have the code to use this on the upload page ready:
https://gist.github.com/7d1944cd25b864216305

Which when given a button to call MusicSearch(), looks like this:
![](http://i.imgur.com/UZXmI.png)