I have been trying to write a Picard plugin. My idea is for it to automatically insert transliterated track listings as comments for releases with track titles written in non-Latin scripts. MusicBrainz contains these transliterations as pseudo-releases existing in parallel with the actual releases. For a given release, for example, I would have to first read the relation for the ID of the related release. I would then have to transfer the titles of those tracks into the comment field of my files. In pseudocode:
pseudo_release = actual_release.getTransliteration() # As indicated in a relationship
i = 1
while i <= actual_release.numTracks():
actual_release.getTrack(i).setComment(pseudo_release.getTrack(i).getTitle())
i++
The first line is what I'm not sure how to do. Since the relation is not available as a Picard variable, it can't be accessed by any way indicated in the API.
I've been looking through the source of Picard and also the standalone web service but haven't been able to find anything. Is this at all possible, and if so how do I do it?