# \[WS\] MusicBrainz XML Webservice

**URL:** <https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591>\
**Category:** Web Sources Scripts\
**Created:** [July 24, 2006, 3:01pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591 "2006-07-24T15:01:50Z")\
**Posts on this page:** 17\
**Page:** 6

<div class="post-metadata">

**Author:** ![threepwood](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/8dc957/32.png) [@threepwood](https://community.mp3tag.de/u/threepwood)\
**Post date:** [July 2, 2018, 4:28pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/101 "2018-07-02T16:28:20Z")

</div>

That update to the Mp3tag default MusicBrainz script is working fine although I was looking for an update to the MusicBrainz script posted on this topic, since it allows to search for Album + Artist (making it much easier to find an album that shares the same name with others).

Thanks for your help anyway 😄

EDIT: Just for the record, I'm talking about this .src file in particular. It was updated by someone else and uploaded on this thread (can't pinpoint now) a while ago:

[&MusicBrainz v2#&2 Search by Album A&rtist ( ID Tags).src](https://community.mp3tag.de/uploads/default/original/2X/a/a199ffe3fad26990f413d74f68ce19a24dc6e5ac.src) (9.2 KB)

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [July 2, 2018, 4:46pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/102 "2018-07-02T16:46:04Z")

</div>

> [@threepwood](#):
>
> I was looking for an update to the MusicBrainz script posted on this topic, since it allows to search for Album + Artist (making it much easier to find an album that shares the same name with others).

You can either update the script from this topic by replacing  
`ext:score` by `:score`

or update the official one with

```auto
[SearchBy]=$regexp(%album%,'[-+!(){}\[\]^"~*?:\\]',) AND artist:($regexp(%artist%,'[-+!(){}\[\]^"~*?:\\]',))

```

I'll probably also include the search by artist with the official one for the next release.

---

<div class="post-metadata">

**Author:** ![threepwood](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/8dc957/32.png) [@threepwood](https://community.mp3tag.de/u/threepwood)\
**Post date:** [July 2, 2018, 4:50pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/103 "2018-07-02T16:50:36Z")

</div>

Just tried your suggested fix (replace "ext:score" with ":score") and it worked!

Cheers 😄

---

<div class="post-metadata">

**Author:** ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)\
**Post date:** [October 15, 2019, 12:59am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/104 "2019-10-15T00:59:13Z")

</div>

Something changed with MB's XML output due to the inclusion of an xml header on line 1. A simple `joinuntil "</metadata>"` at the beginning of the album section of the script should suffice.

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [October 18, 2019, 5:13pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/105 "2019-10-18T17:13:31Z")

</div>

Thanks @ms6676749! I've updated the official tag sources with Mp3tag v2.99.

---

<div class="post-metadata">

**Author:** ![pghil](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/41988e/32.png) [@pghil](https://community.mp3tag.de/u/pghil)\
**Post date:** [December 25, 2019, 5:18am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/106 "2019-12-25T05:18:05Z")

</div>

Any interest in adding Release Group ID to this fabulous script? I wouldn't ask, but Kodi seems to have standardized on that tag in particular for some reason and having mp3tag write it would definitely make life easier. Thanks.

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [December 25, 2019, 11:36am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/107 "2019-12-25T11:36:47Z")

</div>

I've added it to the official script, also added a Artist + Title search  
[MusicBrainz20200112.zip](https://community.mp3tag.de/uploads/short-url/w09JikFnz7Vqjns4q2ebgA8QlUQ.zip) (4.8 KB)  
_updated_

---

<div class="post-metadata">

**Author:** ![pghil](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/41988e/32.png) [@pghil](https://community.mp3tag.de/u/pghil)\
**Post date:** [December 25, 2019, 4:14pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/108 "2019-12-25T16:14:53Z")

</div>

Brilliant, thanks so much!

---

<div class="post-metadata">

**Author:** ![Anshelmo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@Anshelmo](https://community.mp3tag.de/u/Anshelmo)\
**Post date:** [February 1, 2020, 5:34pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/109 "2020-02-01T17:34:18Z")

</div>

Tanks a lot for updating the script.

Could you please add the "releasecountry"? I dont know why, but some months ago it shows up while searching, but not when applying. I miss that entry (ok, I do it manually, but the comfort). Thanks in advance

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [February 5, 2020, 6:38pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/110 "2020-02-05T18:38:24Z")

</div>

added Release country, barcode and catalog number again  
[MusicBrainz20200205.zip](https://community.mp3tag.de/uploads/short-url/8GEyMBHrU0GkbsSwT4ZUQMpsIuf.zip) (5.1 KB)

---

<div class="post-metadata">

**Author:** ![Anshelmo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/2acd7d/32.png) [@Anshelmo](https://community.mp3tag.de/u/Anshelmo)\
**Post date:** [February 6, 2020, 9:23pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/111 "2020-02-06T21:23:01Z")

</div>

Wow, thanks a lot for this quick help 🙂 I tried it myself, but i didnt get it right... Thank you dano

---

<div class="post-metadata">

**Author:** ![MrMix](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@MrMix](https://community.mp3tag.de/u/MrMix)\
**Post date:** [September 6, 2020, 8:27am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/112 "2020-09-06T08:27:00Z")

</div>

Hello ! I wrote my request in 'support' and they kindly ask me to write here.  
I'm using Mp3tag since a couple of months and congratulations it's a great software.  
I added in view a new column named 'isrc' because I would like to add this code.  
I know that discogs has not this info available but musicbrainz has it, not always but more and more.  
Now, in support they told me about the src files, but I have no clue how to add some code to try to retrieve isrc codes from the server.  
Would it be possible having some tips to how try to get it ?  
Thank you in advance  
MrMix

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [September 6, 2020, 10:11pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/113 "2020-09-06T22:11:25Z")

</div>

I've added Isrc to this script:  
[MusicBrainz-isrc.rar](https://community.mp3tag.de/uploads/short-url/nfFoLyFeAU4xOUaQXwFRRE7Xn06.rar) (2.6 KB)

---

<div class="post-metadata">

**Author:** ![MrMix](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@MrMix](https://community.mp3tag.de/u/MrMix)\
**Post date:** [September 7, 2020, 9:00am UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/114 "2020-09-07T09:00:32Z")

</div>

Thank you, I'll let you know if I could succeed.  
MrMix

---

<div class="post-metadata">

**Author:** ![MrMix](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@MrMix](https://community.mp3tag.de/u/MrMix)\
**Post date:** [September 7, 2020, 6:03pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/115 "2020-09-07T18:03:36Z")

</div>

It works just great !  
Thank you  
MrMix

---

<div class="post-metadata">

**Author:** ![Kareha](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/b487fb/32.png) [@Kareha](https://community.mp3tag.de/u/Kareha)\
**Post date:** [October 5, 2021, 8:53pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/116 "2021-10-05T20:53:32Z")

</div>

Is it possible to get the following tags added if allowed:

CATALOGNUMBER  
BARCODE  
ORIGINALYEAR  
RELEASECOUNTRY  
MUSICBRAINZ\_RELEASETRACKID

Or maybe advise on how to add them myself if nobody has time. I'm just trying to match the tags I get via the foobar MB component.

---

<div class="post-metadata">

**Author:** ![MrMix](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@MrMix](https://community.mp3tag.de/u/MrMix)\
**Post date:** [June 26, 2023, 4:02pm UTC](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591/117 "2023-06-26T16:02:17Z")

</div>

Hi, would it be possible to add the field original year that it should be %originalyear% ?  
Thank you in advance  
MM

[Previous page](https://community.mp3tag.de/t/ws-musicbrainz-xml-webservice/3591.md?page=5)
