Subject: | Valid relationship recording-level-rels rejected as invalid |
Date: | Thu, 22 Nov 2018 13:42:29 -0500 |
To: | bug-WebService-MusicBrainz [...] rt.cpan.org |
From: | "George M." <george [...] begos.ca> |
Hi;
Distrbution: WebService::MusicBrainz-1.0.4
perl: perl 5, version 26, subversion 1 (v5.26.1) built for
x86_64-linux-gnu-thread-multi
os: Linux 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux
Relationship recording-level-rels is valid in MBZ API, but it is rejected
by the module as invalid. This relationship contains very useful data for
track credits including instruments, voices etc.
Valid MBZ request sample:
http://musicbrainz.org/ws/2/release/8e66dc17-835b-4e46-8d2d-32702b967106?inc=recordings+artists+artist-credits+artist-rels+instrument-rels+recording-level-rels+work-rels
Perl code:
my $result = $mb->search(
"release" => {
mbid =>
'8e66dc17-835b-4e46-8d2d-32702b967106',
inc => [
'recordings', 'artists',
'artist-credits',
'artist-rels',
'instrument-rels',
'recording-level-rels',
'work-rels'
]
}
);
Error:
Not a valid "inc" subquery (recordings, artists, artist-credits,
artist-rels, instrument-rels, recording-level-rels, work-rels) for
resource: release at /usr/local/share/perl/5.26.1/WebService/MusicBrainz.pm
line 140
Thanks;
George