Skip Menu |

This queue is for tickets about the WebService-MusicBrainz CPAN distribution.

Report information
The Basics
Id: 42482
Status: resolved
Priority: 0/
Queue: WebService-MusicBrainz

People
Owner: Nobody in particular
Requestors: smpuj [...] bk.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.20
Fixed in: (no value)



I noticed this while using Music::Tag::MusicBrainz 0.3 (via Music::Audioscrobbler::MPD 0.13). There is such code in $self->status( "Looking up track from " . $self->options->{mb_host} ); unless ( exists $self->{mb_r} ) { $self->{mb_r} = WebService::MusicBrainz::Release->new( HOST => $self->options->{mb_host} ); } return unless ( defined $self->info->mb_albumid ); my $params = { MBID => $self->info->mb_albumid, INC => "tracks+puids+discs+release-events", }; my $response = $self->{mb_r}->search($params); First it failed with «Error with Music::Tag: Can't escape \x{041D}, try uri_escape_utf8() instead at /usr/share/perl5/vendor_perl/WebService/MusicBrainz/Query.pm line 152», but after fixing this, I got «Error with Music::Tag: URL (http://musicbrainz.org/ws/1/release/d874ca9d-a12d-409b-a271-2964ac9c5fd6?type=xml&inc=tracks%2Bpuids%2Bdiscs%2Brelease-events) Request Failed - Code: 400 Error: Bad Request» This happens because '%2B' is not the same as '+' for musicbrainz.org XML API.
…such code in Music::Tag::MusicBrainz.pm
Thanks for the feedback. Multiple INC parameters were possible by delimiting them with whitespace but this was essentially undocumented. I added the ability to delimit multiple INC parameters with whitespace, a comma, or a + character along with some documentation to explain this. Fixed in version 0.21.