ricbra / php-discogs-api

PHP 5.4 Implementation of the Discogs API
MIT License
152 stars 96 forks source link

Problem with search #1

Closed alolis closed 12 years ago

alolis commented 12 years ago

Hello!

I am trying to use your library and specifically the search functionality. If i execute the following:

$discogs = new \Discogs\Service();
$resultSet = $discogs->search(array('q' => "1982 (Statik Selektah & Termanology) - 2012", 'type' => 'release'));

then the $resultsSet->results is empty. If i just copy paste the query '1982 (Statik Selektah & Termanology) - 2012' inside the search box at discogs.com then it returns the release i am looking for.

Am I using it correctly? Is there a better way?

Thank you for your time

alolis commented 12 years ago

The issue is probably not related with the client but the way Discogs handles API requests so i also made a request here http://www.discogs.com/help/forums/topic/346447 to get some more details.

If someone knows more about it please post.

ricbra commented 12 years ago

It seems like Discogs search function on the site differs from the API. In the thread you posted I see there are more people with the same problem.

I'll keep an eye on the thread. When the API implementation needs to be changed I'll fix it. But for now it just seems Discogs need to fix the problem in the API.

Thanks for reporting the problem!

alolis commented 12 years ago

Thanks for your reply Richard. I hope an API developer will shed some light :)

ricbra commented 12 years ago

I am closing this one as it's confirmed to be a Discogs backend issue.