Help submiting ISRCs (via PHP or JS)

Hello! I’m trying to add ISRC submitting to a seeder (https://etc.marlonob.info/atisket/) that I wrote.

I have read the documentation but I can’t get it right. Could anyone help me with a beginners guide to the process with either PHP or JavaScript? Currently I only link to the script by tatsumo but that only works with Spotify and not Deezer.

Thanks in advance.

2 Likes

Maybe start by saying what you tried and where you got stuck. It’s easier to find some help this way.

2 Likes

In case anyone else is wondering how to us the page/script by @Tatsumo (assuming that is you :slight_smile:) which allows submitting ISRCs via a-tisket with one click (saves time!)…

Using Sound Mirrors as an example:

Step 1: Open the link via a-tisket (this is the one I had to open after submitting a new release)
https://tatsumo.pythonanywhere.com/album/7EWZNpL7QQ6ddMWD0oumbb

Step 2:
Notice that there is no submit button! At this point you might give up (I did). I didn’t know what to do, until I realized you first have to kind-of authorize the tool to submit data.

Step 3:
Click on “Refresh bearer token to submit new data” at the top of the page.

Step 4:
This page will load, which is empty:
https://tatsumo.pythonanywhere.com/auto
Again, you might think that something is wrong with this tool.

Step 5:
Paste the link from step 1 into the browser again and this time, notice that there is a “Submit” button at the end of the page. Clicking that button will submit all ISRCs in one convenient swoop. (Don’t do it now though, I have already submitted the data.)

Btw, there are other ISRC submit tools in ISRC#Resources

1 Like

@marlonob @tatsumo,
It is now possible to submit ISRC with edit notes so please add information in the edit notes, like the source URL. :slight_smile:

Some documentation (even a sample edit) would be helpful.

I can’t see anything other than the commit itself

1 Like

I did it based on that commit, and the following fetch

fetch("https://musicbrainz.org/ws/2/recording/?client=spotifyIsrcSubmit2.0", {
  "headers": {
    "accept": "*/*",
    "accept-language": "en-US,en;q=0.9,de;q=0.8,zh-CN;q=0.7,zh;q=0.6",
    "authorization": "Bearer <redacted>",
    "content-type": "application/xml; charset=\"utf-8\"",
  },
  "referrer": "https://d.ontun.es/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "<metadata xmlns=\"http://musicbrainz.org/ns/mmd-2.0#\">\n    <recording-list>\n    <recording id=\"3225d276-4ad3-4222-b48e-051785121d79\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800725\" />\n        </isrc-list>\n      </recording><recording id=\"f1f84f72-4a3e-4eeb-959e-b8181c825d9a\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1700535\" />\n        </isrc-list>\n      </recording><recording id=\"b2f4cf9a-09ab-4f14-97ea-ef81b387c628\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800758\" />\n        </isrc-list>\n      </recording><recording id=\"2a99a251-d6b7-4211-b537-a94600bbf52b\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800783\" />\n        </isrc-list>\n      </recording><recording id=\"dbb02d42-1785-4d83-874b-07a1f07045d0\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800784\" />\n        </isrc-list>\n      </recording><recording id=\"cd289307-1252-4617-977d-3d3848f10e59\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800785\" />\n        </isrc-list>\n      </recording><recording id=\"9f26efff-93b8-4c44-a865-460c49da984d\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800786\" />\n        </isrc-list>\n      </recording><recording id=\"bf6b254b-5b3b-40b1-b015-0fee221989cd\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800787\" />\n        </isrc-list>\n      </recording><recording id=\"93b0c5e8-afcf-4940-90a8-d48d71fc8bdd\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1700603\" />\n        </isrc-list>\n      </recording><recording id=\"bbefa188-48c4-44c5-b9e0-182ab8ee6984\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800790\" />\n        </isrc-list>\n      </recording><recording id=\"8dedf5d0-8c4a-47e5-b156-5f7095cbcd3c\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800728\" />\n        </isrc-list>\n      </recording><recording id=\"22f6e289-d89f-4e52-bb4c-c8377ef80453\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800791\" />\n        </isrc-list>\n      </recording><recording id=\"deb03eb4-567f-4f82-9e0d-eaec2f9a73f8\">\n        <isrc-list count=\"1\">\n          <isrc id=\"GBK3W1800792\" />\n        </isrc-list>\n      </recording>\n    </recording-list>\n    <edit-note>Submitted from Spotify album ID 6EuYfecmZrodq8sKWW00tZ targetting MusicBrainz release 287dfaeb-0967-4887-9617-66e364acdea2.\n&apos;&apos;&apos;Imported from&apos;&apos;&apos;: https://d.ontun.es/#/explorer/album/6EuYfecmZrodq8sKWW00tZ/287dfaeb-0967-4887-9617-66e364acdea2 (requires Spotify login)</edit-note>\n  </metadata>",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

resulted in this edit which has no note.

1 Like

@jesus2099 @tatsumo The feature is not available yet.

2 Likes

Thanks @kellnerd.
I have removed the Resolution: Fixed, added by GitHub bot because one of the two PR solving this ticket, was merged (but not the other). :slight_smile:

It looks like the required changes were merged today:

So this should be available when the next release of the MB server is deployed :partying_face:

4 Likes

Awesome. The edit note is currently being included in all requests, so it should start appearing as soon as the server accepts it.

2 Likes