xbmc/xbmc — pull request #4989 by elrodro83 (2014-07-07 01:42:25+00:00)
Title: Update albumuniversal.xml

Scraper was failing to get details for an album when a release of another type (single or compilation) with the same name exists.

For instance:

Artist: Judas Priest
Album: Nostradamus

MB Url sent from the scraper:
http://search.musicbrainz.org/ws/2/release/?fmt=xml&query=release:%22Nostradamus%22%20AND%20artist:%22Judas%20Priest%22

Result after executing the regexps:
```xml
DE-2008-T#13Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/59a3bba0-56a1-4ce0-b071-31360b59bf8d?inc=recordings+release-groups+artists+labels+ratingsUS-2008-T#13Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/7cf3b475-88b0-35e5-aaf6-a0ba7107a3f5?inc=recordings+release-groups+artists+labels+ratingsXE-2008-T#13Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/ce6bc9e5-0ca3-342c-ac00-78963655a92b?inc=recordings+release-groups+artists+labels+ratingsJP-2008-T#13Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/a319bbf8-0d5a-4209-9de1-1fe821f772a0?inc=recordings+release-groups+artists+labels+ratingsXW-2008-T#1Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/59a3bba0-56a1-4ce0-b071-31360b59bf8d?inc=recordings+release-groups+artists+labels+ratingsDE-2008-T#13Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/23aada98-3ffc-4247-8fb6-528eeaee3077?inc=recordings+release-groups+artists+labels+ratingsUS-2008-T#13Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/7cf3b475-88b0-35e5-aaf6-a0ba7107a3f5?inc=recordings+release-groups+artists+labels+ratingsXE-2008-T#13Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/ce6bc9e5-0ca3-342c-ac00-78963655a92b?inc=recordings+release-groups+artists+labels+ratingsJP-2008-T#13Judas Priest

Nostradamus

http://musicbrainz.org/ws/2/release/a319bbf8-0d5a-4209-9de1-1fe821f772a0?inc=recordings+release-groups+artists+labels+ratings
```

After comparing the MB output to the trasformed output, i see the first entry is mixing the id from the single with the country, year and track count of the second. This is because the part of the regexp puts the "non-album" ((.*?))* and the regexp continues evaluating but with the next "Album" release after having read the id of the single.

I checked this happening (and fixed by this change) in the following albums:

Duran Duran - Notorious (Single with the same name as the album)
Gary Moore - Back on The Streets (Compilation with the same name as the album)