Fix compatibility with WebService::MusicBrainz 1.x
authorNicolas Guillaumin <nicolas+github@guillaumin.me>
Mon, 26 Feb 2018 21:00:02 +0000 (21:00 +0000)
committerSteve McIntyre <steve@einval.com>
Mon, 26 Feb 2018 21:02:29 +0000 (21:02 +0000)
commit0b3b704c791b76f60022e7a0792793e80d3d7ec5
tree1bb58a27b1470fcd93d2a18401664e886a43902c
parent10893b0096da3af998fa880fd48ec650cc636101
Fix compatibility with WebService::MusicBrainz 1.x

Closes Issue #60: https://abcde.einval.com/bugzilla/show_bug.cgi?id=60

Account for changes in WebService::MusicBrainz v1.x which uses the v2
MusicBrainz API.

This converts the API call to the v2 API, and account for the slightly
different data structure of the response.

Track offsets are directly available in the response and don't need
computation anymore.

There is some complication to locate the track names since the v2 API
response may return multiple media per release, including media with an
ID that is different from the one originally requested.
abcde-musicbrainz-tool
changelog