Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't filter on type with inc=releases #9

Open
mavit opened this issue Dec 11, 2020 · 0 comments
Open

Can't filter on type with inc=releases #9

mavit opened this issue Dec 11, 2020 · 0 comments

Comments

@mavit
Copy link
Contributor

mavit commented Dec 11, 2020

The following code generates the wrong query to filter the included releases. Consequently, the desired data is missing from the response.

WebService::MusicBrainz->new->search(
    'artist' => {
        'mbid' => '01809552-4f87-45b0-afff-2c6f0730a3be',
        'inc' => 'releases',
        'type' => 'album',
    }
);

Generated URL: http://musicbrainz.org/ws/2/artist/01809552-4f87-45b0-afff-2c6f0730a3be?fmt=json&inc=releases&query=type:"album"&offset=0
Expected URL: http://musicbrainz.org/ws/2/artist/01809552-4f87-45b0-afff-2c6f0730a3be?fmt=json&inc=releases&type=album&offset=0

davehayes added a commit to davehayes/webservice-musicbrainz that referenced this issue Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant