# Putting MusicBrainz annotation into track comment

**URL:** <https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489>\
**Category:** MusicBrainz Picard\
**Tags:** taggerscript, picard\
**Created:** [February 21, 2021, 8:20pm UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489 "2021-02-21T20:20:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattgoldspink](https://community.metabrainz.org/user_avatar/community.metabrainz.org/mattgoldspink/32/31827_2.png) [@mattgoldspink](https://community.metabrainz.org/u/mattgoldspink)\
**Post date:** [February 21, 2021, 8:20pm UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489/1 "2021-02-21T20:20:37Z")

</div>

For some releases I’d like to copy the annotation on a release into the comment tag of the file in Picard. For example, this release on musicbrainz:

[https://musicbrainz.org/release/a1b36aa1-2ac1-4eea-acc5-5fd149e0d01e](https://musicbrainz.org/release/a1b36aa1-2ac1-4eea-acc5-5fd149e0d01e)

Has the tracklist in the annotation and I’d like to be able to have that added as the comment on the mp3 I have of it. I’d tried to google around and also searched the forums here and the read through docs on picard, but I don’t see any mention of the Annotation being available in picard. Is that right? If so if there a relatively easy way to get it instead?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Sophist](https://community.metabrainz.org/user_avatar/community.metabrainz.org/sophist/32/70055_2.png) [@Sophist](https://community.metabrainz.org/u/Sophist)\
**Post date:** [February 21, 2021, 9:55pm UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489/2 "2021-02-21T21:55:07Z")

</div>

As far as I know this is not currently possible because the annotation text is NOT part of the Webservice response from Musicbrainz. I am not even sure whether the annotation is accessible via a webservice call at all.

I guess it is always possible for you to write an album metadata plugin that either makes another webservice call or screen-scrapes the release web page to get the annotation.

---

<div class="post-metadata">

**Author:** ![elomatreb](https://community.metabrainz.org/user_avatar/community.metabrainz.org/elomatreb/32/44009_2.png) [@elomatreb](https://community.metabrainz.org/u/elomatreb)\
**Post date:** [February 21, 2021, 11:54pm UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489/3 "2021-02-21T23:54:35Z")

</div>

The API can [expose the annotation](https://musicbrainz.org/ws/2/release/a1b36aa1-2ac1-4eea-acc5-5fd149e0d01e?fmt=json&inc=annotation), it’s just that Picard apparently does not make it available as a variable.

---

<div class="post-metadata">

**Author:** ![mattgoldspink](https://community.metabrainz.org/user_avatar/community.metabrainz.org/mattgoldspink/32/31827_2.png) [@mattgoldspink](https://community.metabrainz.org/u/mattgoldspink)\
**Post date:** [February 22, 2021, 8:39am UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489/4 "2021-02-22T08:39:33Z")

</div>

Thanks guys - this at least gives me a starting point. I’ve filed a JIRA for support here: [https://tickets.metabrainz.org/browse/PICARD-2124](https://tickets.metabrainz.org/browse/PICARD-2124)

In the meantime I’ll take a stab at a tagger script to pull it in via the webservice and share here if I manage to get it working.

---

<div class="post-metadata">

**Author:** ![Sophist](https://community.metabrainz.org/user_avatar/community.metabrainz.org/sophist/32/70055_2.png) [@Sophist](https://community.metabrainz.org/u/Sophist)\
**Post date:** [February 22, 2021, 4:36pm UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489/5 "2021-02-22T16:36:10Z")

</div>

Yes - I was wrong about it not being available in the API - and @outsidecontext has been a star yet again and coded a fix at [https://github.com/metabrainz/picard/pull/1750](https://github.com/metabrainz/picard/pull/1750). So no scripts or plugins required from the next version. You can even try it in the PR dev version which can be found in the artifacts [sic.] dropdown in the top-right of [https://github.com/metabrainz/picard/pull/1750/checks?check\_run\_id=1952679709](https://github.com/metabrainz/picard/pull/1750/checks?check_run_id=1952679709).

---

<div class="post-metadata">

**Author:** ![outsidecontext](https://community.metabrainz.org/user_avatar/community.metabrainz.org/outsidecontext/32/90_2.png) [@outsidecontext](https://community.metabrainz.org/u/outsidecontext)\
**Post date:** [February 22, 2021, 4:44pm UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489/6 "2021-02-22T16:44:32Z")

</div>

It was simple enough to add without any implications and I think just makes sense 😃

Just to also to have this noted here: This was easy to support for the release annotation. Not so much for e.g. recording, release group or artist annotation. This would require either a change to the web service or additional requests. If this is wanted I would for now recommend having a plugin for this.

---

<div class="post-metadata">

**Author:** ![mattgoldspink](https://community.metabrainz.org/user_avatar/community.metabrainz.org/mattgoldspink/32/31827_2.png) [@mattgoldspink](https://community.metabrainz.org/u/mattgoldspink)\
**Post date:** [February 23, 2021, 11:14am UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489/7 "2021-02-23T11:14:33Z")

</div>

Wow! Thanks for the quick turnaround!

---

<div class="post-metadata">

**Author:** ![mattgoldspink](https://community.metabrainz.org/user_avatar/community.metabrainz.org/mattgoldspink/32/31827_2.png) [@mattgoldspink](https://community.metabrainz.org/u/mattgoldspink)\
**Post date:** [February 23, 2021, 11:27am UTC](https://community.metabrainz.org/t/putting-musicbrainz-annotation-into-track-comment/520489/8 "2021-02-23T11:27:53Z")

</div>

I can confirm - it works beautifully! The script in case anyone needs it is simply:

```
$set('comment', %_releaseannotation%)

```

Thanks again!
