Thank you, @loujin, but i have now rather a stupid question - how to use it? xD Lets say i have added a new release and now want to create new works and assign (copy using your script) writers there. I open a relationship editor: https://musicbrainz.org/release/eacdecf4-22dd-42ad-94c5-5a6a93400051/edit-relationships
Now i select one (or all) recording(s), click batch-create new works and then click an “apply” button from your script to transfer writer credits? Or should i before using your script attach (by submitting) these newly created works to recordings to form a link between them?
Anyway nothing is happening for me either way. The only thing i see after click an “apply” button is editor comment: —
GM script: “MusicBrainz relation editor: Set writer relation from recording artist” (2021.4.4)
I am using tampermonkey on chrome if that matters.
Normally you should first select the recordings you want (with the usual checkboxes) then click Apply. But it seems the script is not working on the release you linked, because there’s no explicit artist credit in the recordings. I’ll have to find another way to find the recording artists
Edit: should be fixed now with version 2021.4.5. Note that the script will need 1 second per recording because I have to use the API to get the necessary info
Thank you, @loujin. This script will be useful a lot.
The only question - is it possible to add credits not as “writers”, but as “composers”? I suppose this line determine that, but i wasnt able to figure how to modify it:
target: credit.artist,
As far as I remember you have to add something like dialog.relationship().linkTypeID(168) just before the dialog.accept() line. I can’t check right now
@loujin: if it’s relatively trivial, could this be expanded to copy rels from one medium to another? Use case being stuff like this release that has stereo + multichannel recordings with the same content:
I found a relatively easy way to define a range of “source” recordings to take relations from and applied on the other selected recordings (i.e. defining source as “1-4” on 12 selected recordings will apply the relations on recordings 5-8, and again on 9-12). So no management by medium, still have to count tracks to be used
That’s version 2022.1.28
Oh and there’s an info box 🛈 next to the input box to remind you of what syntax is recognized
I don’t think the other option (clone recording relations) can copy rels from N recordings of a separate release to N recordings on yours, only N to N recordings on the same release or 1 to N from a different release.
Thanks for the explanation, I might give it a shot at copying recordings on a Recording tab from one release to another, that would help with compilations that combine more than one release.
Sorry if i am resurrecting an old thread, but after recent server update this script stopped working. If it’s possible, @loujin , could you update it? This script is simply a “must have” for me.
The script (and the other relationship editor scripts) should be up-to-date now. The only regression I know of (and don’t really want to spend time fixing) is that you cannot anymore clone “pending” relations you just created in the editor. You need first to save the release with the new relation, then you can clone the relation to other recordings in a second step.